Formatting and added a todo for better image handling
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user