main #19
@ -17,11 +17,7 @@
|
||||
<div class="flex-row grow">
|
||||
<img
|
||||
class="cover pointer"
|
||||
:src="
|
||||
selectedTrack.parent.covers.cover64 ||
|
||||
selectedRadio.cover64 ||
|
||||
'/static/icons/dummy/album.svg'
|
||||
"
|
||||
:src="cover"
|
||||
:title="selectedTrack.parent.title"
|
||||
@click="gotoContainer"
|
||||
/>
|
||||
@ -310,6 +306,27 @@ export default {
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
cover() {
|
||||
if (this.selectedTrack.title != "") {
|
||||
let res = "/static/icons/dummy/album.svg";
|
||||
|
||||
if (this.selectedTrack.parent.covers.cover64) {
|
||||
res = this.selectedTrack.parent.covers.cover64;
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
if (this.selectedRadio) {
|
||||
let res = "/static/icons/dummy/radio.svg";
|
||||
if (this.selectedRadio.cover64) {
|
||||
res = this.selectedRadio.cover64;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
return "";
|
||||
},
|
||||
selectedTrack() {
|
||||
return this.$store.getters["tracks/selectedTrack"];
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user