Simplify "confirm before closing" preference

This commit is contained in:
An Phan 2016-03-15 20:59:12 +08:00
parent 16283112b3
commit ddfe9ccb03

View file

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