Formatting and added a todo for better image handling

This commit is contained in:
2019-06-04 21:43:17 +02:00
parent fd405250a5
commit 0a458bfe21

View File

@@ -28,11 +28,12 @@ export default {
}
},
methods: {
// TODO handle missing images better and load diff sizes based on screen size
poster() {
if(this.movie.poster){
return 'https://image.tmdb.org/t/p/w500' + this.movie.poster;
if (this.movie.poster) {
return 'https://image.tmdb.org/t/p/w500' + this.movie.poster
} else {
this.noImage = true;
this.noImage = true
}
},
openMoviePopup(id, type){