fix for app.inLibrary
This commit is contained in:
parent
8c69168a69
commit
74d1631349
2 changed files with 2 additions and 1 deletions
|
@ -2571,6 +2571,7 @@ const app = new Vue({
|
||||||
if (type.slice(-1) != "s") {
|
if (type.slice(-1) != "s") {
|
||||||
type += "s"
|
type += "s"
|
||||||
}
|
}
|
||||||
|
type = type.replace("library-", "")
|
||||||
let id = item.attributes.playParams.catalogId ?? item.id
|
let id = item.attributes.playParams.catalogId ?? item.id
|
||||||
|
|
||||||
let index = types.findIndex(function (type) {
|
let index = types.findIndex(function (type) {
|
||||||
|
|
|
@ -101,7 +101,7 @@
|
||||||
methods: {
|
methods: {
|
||||||
async checkLibrary() {
|
async checkLibrary() {
|
||||||
if(this.addedToLibrary) {return this.addedToLibrary}
|
if(this.addedToLibrary) {return this.addedToLibrary}
|
||||||
if(this.item.type.includes("library-") || this.item.type.includes("station")) {
|
if(this.item.type.includes("library-playlists") || this.item.type.includes("station")) {
|
||||||
this.addedToLibrary = true
|
this.addedToLibrary = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue