Various error fixing
Signed-off-by: Core <core@coredev.uk>
This commit is contained in:
parent
085081afc3
commit
588a960965
18 changed files with 28 additions and 18 deletions
|
@ -13,7 +13,7 @@
|
|||
<div class="name">{{app.getLz('action.createPlaylist')}}</div>
|
||||
</button>
|
||||
<sidebar-playlist :playlist-select="playlistSelect" :relate-media-items="relateItems"
|
||||
v-for="item in $root.getPlaylistFolderChildren('p.playlistsroot')" :item="item">
|
||||
v-for="item in $root.getPlaylistFolderChildren('p.playlistsroot')" v-bind:key="item.id" :item="item">
|
||||
</sidebar-playlist>
|
||||
</div>
|
||||
<div class="modal-search">
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<div v-for="items in itemPages">
|
||||
<mediaitem-list-item
|
||||
v-for="(song, index) in items" :show-library-status="showLibraryStatus"
|
||||
v-bind:key="song.id"
|
||||
:parent="'listitem-hr' + simplifiedParent"
|
||||
:index="song.index"
|
||||
:item="song"></mediaitem-list-item>
|
||||
|
|
|
@ -6,13 +6,14 @@
|
|||
((item?.attributes?.kind != null || item?.attributes?.type == 'editorial-elements')
|
||||
? item :
|
||||
((item.relationships && item.relationships.contents ) ? item.relationships.contents.data[0] : item)) ?? (item)"
|
||||
:imagesize="imagesize"
|
||||
:imagesize="imagesize" v-bind:key="item.id"
|
||||
:badge="item.attributes ?? [] " v-for="item in items"></mediaitem-mvview-sp>
|
||||
</template>
|
||||
<template v-else>
|
||||
<mediaitem-square :kind="kind" size="600" :key="item?.id ?? ''"
|
||||
:item="item ? ((item.attributes?.kind != null || item.type == 'editorial-elements') ? item : ((item.relationships && item.relationships.contents ) ? item.relationships.contents.data[0] : item)) : []"
|
||||
:imagesize="imagesize"
|
||||
v-bind:key="item.id"
|
||||
v-for="item in items"></mediaitem-square>
|
||||
</template>
|
||||
</vue-horizontal>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="cd-hmedia-scroller hmedia-scroller-card">
|
||||
<vue-horizontal>
|
||||
<template>
|
||||
<mediaitem-square kind="card" :item="item" size="300" :reasonShown="withReason"
|
||||
<mediaitem-square kind="card" :item="item" size="300" :reasonShown="withReason" v-bind:key="item.id"
|
||||
v-for="item in items"></mediaitem-square>
|
||||
</template>
|
||||
</vue-horizontal>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<%- include("../svg/play.svg") %>
|
||||
</button>
|
||||
<div class="badge-container" v-if="itemBadges.length != 0">
|
||||
<div class="socialBadge" v-for="badge in itemBadges.limit(1)">
|
||||
<div class="socialBadge" v-for="badge in itemBadges.limit(1)" v-bind:key="badge.id">
|
||||
<mediaitem-artwork
|
||||
:url="(badge.attributes.artwork ? badge.attributes.artwork.url : '')"
|
||||
:size="32"></mediaitem-artwork>
|
||||
|
@ -102,7 +102,7 @@ Vue.component('mediaitem-square', {
|
|||
type: Boolean,
|
||||
default: false,
|
||||
required: false
|
||||
},
|
||||
},
|
||||
'contextExt': { type: Object, required: false },
|
||||
},
|
||||
data: function () {
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
</div>
|
||||
<div class="queue-body" v-if="page == 'history'">
|
||||
<mediaitem-list-item :show-library-status="false" v-for="item in history"
|
||||
v-bind:key="item.id"
|
||||
:item="item"></mediaitem-list-item>
|
||||
</div>
|
||||
<div class="queue-body" v-if="page == 'queue'">
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<div class="name">{{app.getLz('action.createPlaylist')}}</div>
|
||||
</button>
|
||||
<sidebar-playlist :playlist-select="playlistSelect"
|
||||
v-for="item in $root.getPlaylistFolderChildren('p.playlistsroot')" :item="item">
|
||||
v-for="item in $root.getPlaylistFolderChildren('p.playlistsroot')" v-bind:key="item.id" :item="item">
|
||||
</sidebar-playlist>
|
||||
</div>
|
||||
<div class="modal-search">
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<div class="folder-body" v-if="item.type === 'library-playlist-folders' && folderOpened">
|
||||
<template v-if="children.length != 0">
|
||||
<sidebar-playlist v-for="item in children" :relate-media-items="relateMediaItems"
|
||||
:playlist-select="playlistSelect" :item="item" :key="item.id"></sidebar-playlist>
|
||||
:playlist-select="playlistSelect" :item="item" v-bind:key="item.id"></sidebar-playlist>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="spinner"></div>
|
||||
|
|
|
@ -165,6 +165,7 @@
|
|||
<template v-if="!$root.cfg.general.sidebarCollapsed.amplaylists">
|
||||
<sidebar-playlist
|
||||
v-for="item in $root.getPlaylistFolderChildren('p.applemusic')"
|
||||
v-bind:key="item.id"
|
||||
:item="item"
|
||||
>
|
||||
</sidebar-playlist>
|
||||
|
@ -187,6 +188,7 @@
|
|||
</button>
|
||||
<sidebar-playlist
|
||||
v-for="item in $root.getPlaylistFolderChildren('p.playlistsroot')"
|
||||
v-bind:key="item.id"madeforyou
|
||||
:item="item"
|
||||
>
|
||||
</sidebar-playlist>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue