+ v-on:click="toggle_details(song)">
${ song.song.artist }$
-
+
Requested by:
Marietje
@@ -109,7 +108,7 @@
|
${ song.song.title }$
-
+
Plays In:
Plays At:
@@ -278,6 +277,7 @@
clockInterval: null,
started_at: null,
playsIn: true,
+ songs_show_details_on_mobile: [],
}
},
watch: {
@@ -461,6 +461,19 @@
this.refresh();
});
},
+ show_details(song) {
+ return this.songs_show_details_on_mobile.includes(song.id);
+ },
+ toggle_details(song) {
+ if (!this.show_details(song)) {
+ this.songs_show_details_on_mobile.push(song.id);
+ } else {
+ // Deze filter is gehaat door Kees, gemaakt door Olaf. Bedankt, Olaf. Duurde wel even.
+ this.songs_show_details_on_mobile = this.songs_show_details_on_mobile.filter(
+ value => value !== song.id
+ );
+ }
+ },
}
}).mount("#queue-container");
|