From 16ff17c3b51259b8154f9ad4f78900b37f6a1233 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 13 Aug 2022 10:42:43 +0200 Subject: [PATCH] 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