mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-11 09:22:20 +01:00
fix(queues): remove faulty update, add null-coalescing on song user
Removal of update call might resolve #66, but I hope I do not negate @tjibbegottmer's work.
This commit is contained in:
@ -285,7 +285,6 @@
|
|||||||
watch: {
|
watch: {
|
||||||
playsIn: {
|
playsIn: {
|
||||||
handler(val, oldVal) {
|
handler(val, oldVal) {
|
||||||
this.update_infobar();
|
|
||||||
setCookie("PLAYS_IN", this.playsIn, 14);
|
setCookie("PLAYS_IN", this.playsIn, 14);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -359,7 +358,7 @@
|
|||||||
}
|
}
|
||||||
infoBar.now_in_seconds = Math.round((new Date()).getTime() / 1000);
|
infoBar.now_in_seconds = Math.round((new Date()).getTime() / 1000);
|
||||||
// If the current song is the current user's, their queue has started.
|
// If the current song is the current user's, their queue has started.
|
||||||
if (this.queue[0].user.id === this.user_data.id) {
|
if (this.queue[0].user?.id === this.user_data.id) {
|
||||||
infoBar.start_personal_queue = 0;
|
infoBar.start_personal_queue = 0;
|
||||||
}
|
}
|
||||||
for (let i = 0; i < this.queue.length; i++) {
|
for (let i = 0; i < this.queue.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user