mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 16:32:20 +01:00
Merge branch 'feature/remember-plays-at-in' into 'marietje-zuid'
Store plays at/in in cookie Closes #73 See merge request technicie/MarietjeDjango!87
This commit is contained in:
@ -284,11 +284,15 @@
|
||||
playsIn: {
|
||||
handler(val, oldVal) {
|
||||
this.update_infobar();
|
||||
setCookie("PLAYS_IN", this.playsIn, 14);
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.clockInterval = setInterval(this.update_song_times, 1000);
|
||||
|
||||
const stored_playsIn = getCookie("PLAYS_IN");
|
||||
this.playsIn = (stored_playsIn !== "false");
|
||||
},
|
||||
unmounted() {
|
||||
clearInterval(this.clockInterval);
|
||||
|
||||
Reference in New Issue
Block a user