@@ -311,6 +319,24 @@
}
})
},
+ menu() {
+ app.showMenuPanel({
+ name: this.data.attributes ? (this.data.attributes.name ??
+ (this.data.attributes.title ?? '') ?? '') : '',
+ items: {
+ "share": {
+ name: "Share",
+ icon: "./assets/feather/share.svg",
+ action: () => {
+ app.mk.api.v3.music(`/v1/me/library/playlists/${this.data.id}/catalog`).then(res=>{
+ console.log(res.data.data[0].attributes.url)
+ app.copyToClipboard(res.data.data[0].attributes.url)
+ })
+ }
+ }
+ }
+ })
+ },
getItemParent: function (data) {
kind = data.attributes.playParams.kind;
id = data.attributes.playParams.id;