forked from DebaucheryLibrarian/traxxx
Showing poster in release album. Filtering empty items from album component.
This commit is contained in:
parent
6e2527e5c5
commit
b6b3def8fa
|
@ -45,10 +45,12 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function albumItems() {
|
function albumItems() {
|
||||||
return this.items.map(item => ({
|
return this.items
|
||||||
...item,
|
.filter(Boolean)
|
||||||
title: item.comment || (item.credit && `© ${item.credit}`) || (item.entity && `© ${item.entity.name}`),
|
.map(item => ({
|
||||||
}));
|
...item,
|
||||||
|
title: item.comment || (item.credit && `© ${item.credit}`) || (item.entity && `© ${item.entity.name}`),
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
<Album
|
<Album
|
||||||
v-if="showAlbum"
|
v-if="showAlbum"
|
||||||
:items="release.photos"
|
:items="[release.poster, ...release.photos]"
|
||||||
:title="release.title"
|
:title="release.title"
|
||||||
@close="$router.go(-1)"
|
@close="$router.go(-1)"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue