add tracknumber in album view
This commit is contained in:
parent
820b206bda
commit
a75d7f5a27
2 changed files with 7 additions and 1 deletions
|
@ -20,6 +20,11 @@
|
||||||
<div class="svg-icon" :style="{'--color': 'var(--keyColor)', '--url': 'url(./assets/feather/plus.svg)'}"></div>
|
<div class="svg-icon" :style="{'--color': 'var(--keyColor)', '--url': 'url(./assets/feather/plus.svg)'}"></div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="showIndex" :style="{display: ((showIndex && !showInLibrary) ? 'block' : 'none'), 'margin-left':'11px'}">
|
||||||
|
<div>
|
||||||
|
<div>{{ item.attributes ? (item.attributes.trackNumber ?? '') : ''}}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div v-if="app.mk.isPlaying && app.mk.nowPlayingItem._songId == item.attributes.playParams.id" :style="{display: (showInLibrary ? 'none' : 'block')}">
|
<div v-if="app.mk.isPlaying && app.mk.nowPlayingItem._songId == item.attributes.playParams.id" :style="{display: (showInLibrary ? 'none' : 'block')}">
|
||||||
<div class="loadbar-sound"></div>
|
<div class="loadbar-sound"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -92,6 +97,7 @@
|
||||||
'show-library-status': {type: Boolean, default: true},
|
'show-library-status': {type: Boolean, default: true},
|
||||||
'show-meta-data': {type: Boolean, default: false},
|
'show-meta-data': {type: Boolean, default: false},
|
||||||
'show-duration': {type: Boolean, default: true},
|
'show-duration': {type: Boolean, default: true},
|
||||||
|
'showIndex': {type: Boolean, required: false},
|
||||||
'contextExt': {type: Object, required: false},
|
'contextExt': {type: Object, required: false},
|
||||||
'class-list': {type: String, required: false, default: ""},
|
'class-list': {type: String, required: false, default: ""},
|
||||||
},
|
},
|
||||||
|
|
|
@ -128,7 +128,7 @@
|
||||||
<div style="width:100%">
|
<div style="width:100%">
|
||||||
<draggable :sort="data.attributes.canEdit && data.type == 'library-playlists'"
|
<draggable :sort="data.attributes.canEdit && data.type == 'library-playlists'"
|
||||||
v-model="data.relationships.tracks.data" @start="drag=true" @end="drag=false;put()">
|
v-model="data.relationships.tracks.data" @start="drag=true" @end="drag=false;put()">
|
||||||
<mediaitem-list-item :item="item" :parent="getItemParent(data)" :index="index"
|
<mediaitem-list-item :item="item" :parent="getItemParent(data)" :index="index" :showIndex="(data.attributes.playParams.kind ?? data.type ?? '').includes('album')"
|
||||||
:context-ext="buildContextMenu()"
|
:context-ext="buildContextMenu()"
|
||||||
v-for="(item,index) in data.relationships.tracks.data"></mediaitem-list-item>
|
v-for="(item,index) in data.relationships.tracks.data"></mediaitem-list-item>
|
||||||
</draggable>
|
</draggable>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue