parent
b032b08753
commit
4fe2c859ed
1 changed files with 5 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
<h3>{{ recom.attributes.title ? recom.attributes.title.stringForDisplay : " "}}</h3>
|
<h3>{{ recom.attributes.title ? recom.attributes.title.stringForDisplay : " "}}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto flex-center" v-if="recom.relationships.contents.data.length >= 10">
|
<div class="col-auto flex-center" v-if="recom.relationships.contents.data.length >= 10">
|
||||||
<button class="cd-btn-seeall" @click="app.showCollection(recom.relationships.contents, recom.attributes.title ? recom.attributes.title.stringForDisplay : '', 'listen_now')" >{{app.getLz('term.seeAll')}}</button>
|
<button class="cd-btn-seeall" @click="showCollection(recom)" >{{app.getLz('term.seeAll')}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<template v-if="recom.attributes.display.kind == 'MusicCoverShelf'">
|
<template v-if="recom.attributes.display.kind == 'MusicCoverShelf'">
|
||||||
|
@ -39,6 +39,10 @@
|
||||||
visibilityChanged: function (isVisible, entry) {
|
visibilityChanged: function (isVisible, entry) {
|
||||||
// this.isVisible = isVisible
|
// this.isVisible = isVisible
|
||||||
},
|
},
|
||||||
|
showCollection: function (recom) {
|
||||||
|
console.debug(recom)
|
||||||
|
app.showCollection(recom.relationships.contents, recom.attributes.title ? recom.attributes.title.stringForDisplay : '', 'listen_now')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
Loading…
Add table
Add a link
Reference in a new issue