Add show complete album
This commit is contained in:
parent
dee42a0ac7
commit
a1b23e4a4a
2 changed files with 6 additions and 1 deletions
|
@ -1394,7 +1394,7 @@ const app = new Vue({
|
|||
async getTypeFromID(kind, id, isLibrary = false, params = {}, params2 = {}) {
|
||||
let a;
|
||||
if (kind == "album" | kind == "albums") {
|
||||
params["include"] = "tracks,artists,record-labels";
|
||||
params["include"] = "tracks,artists,record-labels,catalog";
|
||||
}
|
||||
try {
|
||||
a = await this.mkapi(kind.toString(), isLibrary, id.toString(), params, params2);
|
||||
|
|
|
@ -155,6 +155,11 @@
|
|||
style="width: 50%;">
|
||||
{{data.attributes.copyright}}
|
||||
</div>
|
||||
<template v-if="(data.attributes?.playParams?.kind ?? data.type ?? '').includes('album') && data.relationships.catalog != null && data.relationships.catalog != null && data.relationships.catalog.data.length > 0">
|
||||
<div class="playlist-time showExtended item-navigate" @click="app.routeView(data.relationships.catalog.data[0])">
|
||||
Show complete album
|
||||
</div>
|
||||
</template>
|
||||
<hr>
|
||||
<template v-if="typeof data.meta != 'undefined'">
|
||||
<div v-for="view in data.meta.views.order" v-if="data.views[view].data.length != 0">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue