Replaced no-image with svg

This commit is contained in:
2022-03-05 12:50:45 +01:00
parent acc9bda292
commit bf44668a12

View File

@@ -7,7 +7,7 @@
@click="openMoviePopup" @click="openMoviePopup"
:alt="posterAltText" :alt="posterAltText"
:data-src="poster" :data-src="poster"
src="~assets/placeholder.png" src="/assets/placeholder.png"
/> />
<div v-if="movie.download" class="progress"> <div v-if="movie.download" class="progress">
@@ -65,7 +65,7 @@ export default {
}; };
}, },
computed: { computed: {
posterAltText: function() { posterAltText: function () {
const type = this.movie.type || ""; const type = this.movie.type || "";
const title = this.movie.title || this.movie.name; const title = this.movie.title || this.movie.name;
return this.movie.poster return this.movie.poster
@@ -77,7 +77,7 @@ export default {
if (this.movie.poster != null) { if (this.movie.poster != null) {
this.poster = "https://image.tmdb.org/t/p/w500" + this.movie.poster; this.poster = "https://image.tmdb.org/t/p/w500" + this.movie.poster;
} else { } else {
this.poster = "/assets/no-image.png"; this.poster = "/assets/no-image.svg";
} }
}, },
mounted() { mounted() {