mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Simplify "confirm before closing" preference
This commit is contained in:
parent
16283112b3
commit
ddfe9ccb03
1 changed files with 1 additions and 9 deletions
|
@ -48,7 +48,7 @@
|
|||
</div>
|
||||
<div class="form-row">
|
||||
<label>
|
||||
<input type="checkbox" v-model="prefs.confirmClosing" @change="changeConfirmClosing">
|
||||
<input type="checkbox" v-model="prefs.confirmClosing" @change="savePreference">
|
||||
Confirm before closing Koel
|
||||
</label>
|
||||
</div>
|
||||
|
@ -150,14 +150,6 @@
|
|||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Change the confirmClosing value on the window object (and save it as a preference too).
|
||||
*/
|
||||
changeConfirmClosing() {
|
||||
window.confirmClosing = this.prefs.confirmClosing;
|
||||
preferenceStore.save();
|
||||
},
|
||||
|
||||
/**
|
||||
* Save the current user's preference.
|
||||
* Right now it's only "Song notification."
|
||||
|
|
Loading…
Reference in a new issue