mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
add confirmation dialog to resetting prefs
This commit is contained in:
parent
4e9e098e91
commit
16ff17c3b5
1 changed files with 1 additions and 0 deletions
|
@ -575,6 +575,7 @@ export default {
|
||||||
window.location = "/";
|
window.location = "/";
|
||||||
},
|
},
|
||||||
resetPreferences() {
|
resetPreferences() {
|
||||||
|
if (!confirm(this.$t("actions.reset_preferences") + "?")) return;
|
||||||
// clear the local storage
|
// clear the local storage
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
// redirect to the home page
|
// redirect to the home page
|
||||||
|
|
Loading…
Reference in a new issue