Skip to content

Commit

Permalink
frontend: change style of family form direct json editing
Browse files Browse the repository at this point in the history
  • Loading branch information
Synar committed Sep 13, 2024
1 parent fcf4131 commit 28357f4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion frontend/components/AppIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const iconDict: Record<string, string> = {
addComment: mdi.mdiCommentPlus,
add: mdi.mdiPlus,
delete: mdi.mdiDelete,
save: mdi.mdiUpload,
upload: mdi.mdiUpload,
download: mdi.mdiDownload,
lightDark: mdi.mdiThemeLightDark,
loading: mdi.mdiLoading,
eye: mdi.mdiEye,
Expand Down
20 changes: 17 additions & 3 deletions frontend/components/admin/families/EditFormJson.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@
label="Import"
severity="info"
@click="triggerImport"
/>
>
<template #icon>
<AppIcon
icon-name="upload"
class="-mx-1"
/>
</template>
</Button>
<input
ref="fileInput"
type="file"
Expand All @@ -41,7 +48,14 @@
label="Export"
severity="info"
@click="onExport"
/>
>
<template #icon>
<AppIcon
icon-name="download"
class="-mx-1"
/>
</template>
</Button>
</a>
</span>

Expand Down Expand Up @@ -114,7 +128,7 @@ function onImport(event: Event) {
}
}
reader.readAsText(file)
toast.add({ severity: 'success', summary: 'Succès', detail: `Le fichier a été importé avec succès`, life: 3000 })
toast.add({ severity: 'success', summary: 'Succès', detail: `Le fichier a été importé avec succès. Les changements ne sont pas encore sauvegardés.`, life: 3000 })
}
}
catch {
Expand Down

0 comments on commit 28357f4

Please sign in to comment.