Formatting and added a todo for better image handling
This commit is contained in:
@@ -28,11 +28,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// TODO handle missing images better and load diff sizes based on screen size
|
||||||
poster() {
|
poster() {
|
||||||
if(this.movie.poster){
|
if (this.movie.poster) {
|
||||||
return 'https://image.tmdb.org/t/p/w500' + this.movie.poster;
|
return 'https://image.tmdb.org/t/p/w500' + this.movie.poster
|
||||||
} else {
|
} else {
|
||||||
this.noImage = true;
|
this.noImage = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openMoviePopup(id, type){
|
openMoviePopup(id, type){
|
||||||
|
|||||||
Reference in New Issue
Block a user