Fixed movie scene photo query, added caps.
This commit is contained in:
@@ -28,12 +28,12 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="movie.photos.length > 0"
|
||||
v-if="movie.photos.length > 0 || movie.caps.length > 0"
|
||||
class="album"
|
||||
:class="{ single: movie.photos.length === 1 }"
|
||||
:class="{ single: (movie.photos.length + movie.caps.length) === 1 }"
|
||||
>
|
||||
<div
|
||||
v-for="photo in movie.photos"
|
||||
v-for="photo in movie.photos.concat(movie.caps)"
|
||||
:key="`photo-${photo.id}`"
|
||||
class="photo-container"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user