not sure how this works but ok

should resolve #1118
This commit is contained in:
Core 2022-06-04 13:40:32 +01:00
parent b032b08753
commit 4fe2c859ed
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -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>