From 4e9e098e91e8c53c9be953c4a452bd41614d44a2 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 13 Aug 2022 10:35:54 +0200 Subject: [PATCH 1/5] small UI fixes --- src/components/PreferencesPage.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/PreferencesPage.vue b/src/components/PreferencesPage.vue index 63de1040..d313730f 100644 --- a/src/components/PreferencesPage.vue +++ b/src/components/PreferencesPage.vue @@ -22,7 +22,7 @@ @@ -61,7 +61,7 @@ @@ -294,7 +294,7 @@ - + @@ -303,10 +303,10 @@ - + - - + + @@ -598,6 +598,6 @@ export default { From 16ff17c3b51259b8154f9ad4f78900b37f6a1233 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 13 Aug 2022 10:42:43 +0200 Subject: [PATCH 2/5] add confirmation dialog to resetting prefs --- src/components/PreferencesPage.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/PreferencesPage.vue b/src/components/PreferencesPage.vue index d313730f..2fa2400c 100644 --- a/src/components/PreferencesPage.vue +++ b/src/components/PreferencesPage.vue @@ -575,6 +575,7 @@ export default { window.location = "/"; }, resetPreferences() { + if (!confirm(this.$t("actions.reset_preferences") + "?")) return; // clear the local storage localStorage.clear(); // redirect to the home page From 47559730e3565d0cb2b398795b3c525024c0423e Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 13 Aug 2022 11:29:31 +0200 Subject: [PATCH 3/5] backup and restore prefs --- src/components/PreferencesPage.vue | 22 ++++++++++++++++++++++ src/locales/en.json | 4 +++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/components/PreferencesPage.vue b/src/components/PreferencesPage.vue index 2fa2400c..f5321f0a 100644 --- a/src/components/PreferencesPage.vue +++ b/src/components/PreferencesPage.vue @@ -317,6 +317,14 @@