diff --git a/web/i18n/en/a11y/dialog.json b/web/i18n/en/a11y/dialog.json new file mode 100644 index 00000000..451d74cf --- /dev/null +++ b/web/i18n/en/a11y/dialog.json @@ -0,0 +1,3 @@ +{ + "picker.item.generic": "media thumbnail" +} diff --git a/web/i18n/en/dialog.json b/web/i18n/en/dialog.json index b57fae5b..bfe30bec 100644 --- a/web/i18n/en/dialog.json +++ b/web/i18n/en/dialog.json @@ -2,7 +2,14 @@ "button.gotit": "got it", "button.cancel": "cancel", "button.reset": "reset", + "button.done": "done", + "button.downloadAudio": "download audio", "reset.title": "reset all settings?", - "reset.body": "are you sure you want to reset all settings? this action is immediate and irreversible." + "reset.body": "are you sure you want to reset all settings? this action is immediate and irreversible.", + + "picker.title": "select what to save", + "picker.description.desktop": "click an item to save it. images can also be saved via the right click menu.", + "picker.description.phone": "press an item to save it. images can also be saved with a long press.", + "picker.description.ios": "press an item to save it with a shortcut. images can also be saved with a long press." } diff --git a/web/src/components/dialog/DialogBackdropClose.svelte b/web/src/components/dialog/DialogBackdropClose.svelte new file mode 100644 index 00000000..7c290533 --- /dev/null +++ b/web/src/components/dialog/DialogBackdropClose.svelte @@ -0,0 +1,18 @@ + + +
+ + diff --git a/web/src/components/dialog/DialogButtons.svelte b/web/src/components/dialog/DialogButtons.svelte new file mode 100644 index 00000000..5f086a78 --- /dev/null +++ b/web/src/components/dialog/DialogButtons.svelte @@ -0,0 +1,61 @@ + + + + + diff --git a/web/src/components/dialog/DialogHolder.svelte b/web/src/components/dialog/DialogHolder.svelte index 7a9550fe..61503fcd 100644 --- a/web/src/components/dialog/DialogHolder.svelte +++ b/web/src/components/dialog/DialogHolder.svelte @@ -1,7 +1,9 @@ @@ -18,11 +20,56 @@ buttons={dialog.buttons} /> {/if} + + {#if dialog.type === "picker"} +