add confirmation dialog to resetting prefs

This commit is contained in:
Bnyro 2022-08-13 10:42:43 +02:00
parent 4e9e098e91
commit 16ff17c3b5

View file

@ -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