From 4210b17d8922d318e6437b75803108a0bdf26a13 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 28 Jul 2024 13:20:22 +0600 Subject: [PATCH] web/TransferSettings: show a safety warning before importing --- web/i18n/en/dialog.json | 7 +- .../settings/TransferSettings.svelte | 83 ++++++++++++------- 2 files changed, 60 insertions(+), 30 deletions(-) diff --git a/web/i18n/en/dialog.json b/web/i18n/en/dialog.json index 75f673f8..71af5485 100644 --- a/web/i18n/en/dialog.json +++ b/web/i18n/en/dialog.json @@ -7,6 +7,7 @@ "button.download": "download", "button.share": "share", "button.copy": "copy", + "button.import": "import", "reset.title": "reset all settings?", "reset.body": "are you sure you want to reset all settings? this action is immediate and irreversible.", @@ -16,5 +17,9 @@ "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.", - "saving.title": "choose how to save" + "saving.title": "choose how to save", + + "safety.title": "important safety notice", + + "import.body": "importing unknown or corrupted files may unexpectedly alter or break cobalt functionality. only import files that you've personally exported and haven't modified.\n\nwe are not responsible for any harm caused by importing unknown setting files." } diff --git a/web/src/components/settings/TransferSettings.svelte b/web/src/components/settings/TransferSettings.svelte index d73bf6b7..6ea98af2 100644 --- a/web/src/components/settings/TransferSettings.svelte +++ b/web/src/components/settings/TransferSettings.svelte @@ -1,54 +1,79 @@
@@ -65,4 +90,4 @@ display: flex; gap: var(--padding); } - \ No newline at end of file +