mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-08-06 02:34:06 +00:00
add confirmation dialog to resetting prefs
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user