Added dedicated serie photos table, renamed serie scene photo function. Fixed covers and scene photos in banner and album.

This commit is contained in:
DebaucheryLibrarian
2022-03-28 00:22:57 +02:00
parent 1c3ee75d3b
commit 9e2eaef9d1
4 changed files with 39 additions and 17 deletions

View File

@@ -21,7 +21,7 @@
<Details :release="release" />
<button
v-if="release.photos.length > 0"
v-if="release.photos?.length > 0 || release.scenesPhotos?.length > 0"
class="album-toggle"
@click="$router.push({ hash: '#album' })"
><Icon icon="grid3" />View album</button>
@@ -287,7 +287,7 @@ function pageTitle() {
}
function showAlbum() {
return this.release.photos?.length > 0 && this.$route.hash === '#album';
return (this.release.photos?.length > 0 || this.release.scenesPhotos?.length > 0) && this.$route.hash === '#album';
}
export default {