some multiroom fixes

This commit is contained in:
vapormusic 2022-07-02 09:47:04 +07:00
parent 12e590df08
commit 541e037672
3 changed files with 4 additions and 2 deletions

View file

@ -143,7 +143,7 @@
return color return color
}, },
async checkLibrary() { async checkLibrary() {
if (this.item.id.startsWith('ciderlocal')){ if ((this.item?.id ?? '').toString().startsWith('ciderlocal')){
return true return true
} }
if (this.addedToLibrary) { return this.addedToLibrary } if (this.addedToLibrary) { return this.addedToLibrary }

View file

@ -8,6 +8,7 @@
<h2 class="header-desc" v-html='data.relationships?.children?.data[0]?.attributes?.description ?? ""'></h2> <h2 class="header-desc" v-html='data.relationships?.children?.data[0]?.attributes?.description ?? ""'></h2>
<template v-if="data.relationships"> <template v-if="data.relationships">
<template v-for="(recom,index) in data.relationships.children.data"> <template v-for="(recom,index) in data.relationships.children.data">
<template v-if="(recom.relationships?.contents?.data ?? []).length > 0">
<div class="row"> <div class="row">
<div class="col" v-if="recom.attributes.name != 'Chart Set'"> <div class="col" v-if="recom.attributes.name != 'Chart Set'">
<h3>{{ recom.attributes?.title ?? ""}}</h3> <h3>{{ recom.attributes?.title ?? ""}}</h3>
@ -29,6 +30,7 @@
:items="recom.relationships.children ? recom.relationships.children.data.limit(10) : recom.relationships.contents.data.limit(10)"></mediaitem-scroller-horizontal-large> :items="recom.relationships.children ? recom.relationships.children.data.limit(10) : recom.relationships.contents.data.limit(10)"></mediaitem-scroller-horizontal-large>
</template> </template>
</template> </template>
</template>
</template> </template>
</template> </template>
</div> </div>

View file

@ -17,7 +17,7 @@
<template v-if="(recom.relationships != null && ((recom.relationships.children && recom.relationships.children.data) || (recom.relationships.contents && recom.relationships.contents.data)))"> <template v-if="(recom.relationships != null && ((recom.relationships.children && recom.relationships.children.data) || (recom.relationships.contents && recom.relationships.contents.data)))">
<template v-if="index === 0|| (data.relationships.tabs.data[0].relationships.children.data[0].relationships == null && index === 1)"> <template v-if="index === 0|| (data.relationships.tabs.data[0].relationships.children.data[0].relationships == null && index === 1)">
<mediaitem-scroller-horizontal-mvview :imagesize="800" :browsesp="index == 0|| (data.relationships.tabs.data[0].relationships.children.data[0].relationships == null && index === 1)" :kind="recom.attributes.editorialElementKind" <mediaitem-scroller-horizontal-mvview :imagesize="800" :browsesp="index == 0|| (data.relationships.tabs.data[0].relationships.children.data[0].relationships == null && index === 1)" :kind="recom.attributes.editorialElementKind"
:items="recom.relationships.children ? recom.relationships.children.data.limit(10) : recom.relationships.contents.data.limit(10)"></mediaitem-scroller-horizontal-mvview> :items="recom.relationships.children ? recom.relationships.children.data : recom.relationships.contents.data"></mediaitem-scroller-horizontal-mvview>
</template> </template>
<template v-else-if="(['327']).includes(recom.attributes.editorialElementKind)"> <template v-else-if="(['327']).includes(recom.attributes.editorialElementKind)">
<div class="mediaitem-list-item__grid"> <div class="mediaitem-list-item__grid">