Skip to content

Commit

Permalink
chore: lint fixes #334
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilkyn committed Apr 19, 2024
1 parent 0e2fc12 commit 1a6eccd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions frontend/src/views/admin/DockerImagesView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const upload = async (event: FileUploadUploaderEvent): Promise<void> => {
const files: File[] = event.files as File[];
const endpoint = endpoints.dockerImages.index;
const data = {
'file': files[0],
'name': name.value,
}
file: files[0],
name: name.value,
};
await create<Response>(endpoint, data, response, Response.fromJSON, 'multipart/form-data');
name.value = '';
};
Expand All @@ -33,11 +33,7 @@ const upload = async (event: FileUploadUploaderEvent): Promise<void> => {
<div class="gap-3 mb-3">{{ t('admin.docker_images.title') }}</div>
</Title>
<Body>
<InputText
class="mb-3 gap-3"
v-model:model-value="name"
:placeholder="t('admin.docker_images.name')"
/>
<InputText class="mb-3 gap-3" v-model:model-value="name" :placeholder="t('admin.docker_images.name')" />
<FileUpload
v-if="name.length > 0"
class="mb-3 gap-3"
Expand Down

0 comments on commit 1a6eccd

Please sign in to comment.