rework fallback image handling

This commit is contained in:
Thomas Amland
2020-08-15 20:55:20 +02:00
parent 0aee1b3918
commit 0ca10eb316
7 changed files with 26 additions and 68 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
<div class="d-flex player">
<div v-if="track" class="d-none d-sm-block">
<router-link :to="{name: 'album', params: {id: track.albumId}}">
<b-img :src="track.image" block width="80px" height="80px" />
<img v-if="track.image" width="80px" height="80px" :src="track.image">
<img v-else width="80px" height="80px" src="@/shared/assets/fallback.svg">
</router-link>
</div>
<div class="flex-fill">