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 v-if="album">
<div class="d-flex mb-3">
<div class="mr-3 mr-md-4 image-container">
<b-img height="300" width="300" fluid :src="album.image" />
<img v-if="album.image" class="img-fluid" height="300" width="300" :src="album.image">
<img v-else class="img-fluid" height="300" width="300" src="@/shared/assets/fallback.svg">
</div>
<div>
<h1>{{ album.name }}</h1>