mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-12 19:28:22 +00:00
add confirmation dialog to resetting prefs
This commit is contained in:
parent
4e9e098e91
commit
16ff17c3b5
@ -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 New Issue
Block a user