fixed some menus

This commit is contained in:
booploops 2022-01-13 03:53:27 -08:00
parent 0adeb0f7a5
commit 5e19de0d83
2 changed files with 3 additions and 6 deletions

View file

@ -159,7 +159,6 @@
followAction = "unfollow" followAction = "unfollow"
} }
app.showMenuPanel({ app.showMenuPanel({
name: self.data.attributes.name,
items: [ items: [
{ {
icon: "./assets/feather/play.svg", icon: "./assets/feather/play.svg",
@ -179,7 +178,7 @@
} }
} }
] ]
}) }, event)
}, },
getArtistPalette(artist) { getArtistPalette(artist) {
if (artist["attributes"]["artwork"]) { if (artist["attributes"]["artwork"]) {

View file

@ -319,10 +319,8 @@
} }
}) })
}, },
menu() { menu(event) {
app.showMenuPanel({ app.showMenuPanel({
name: this.data.attributes ? (this.data.attributes.name ??
(this.data.attributes.title ?? '') ?? '') : '',
items: { items: {
"share": { "share": {
name: "Share", name: "Share",
@ -353,7 +351,7 @@
} }
} }
} }
}) }, event)
}, },
getItemParent: function (data) { getItemParent: function (data) {
kind = data.attributes.playParams.kind; kind = data.attributes.playParams.kind;