artists can now be followed in dev, homepage will now display latest releases from followed

This commit is contained in:
booploops 2021-12-29 00:11:12 -08:00
parent f930f0fd16
commit 1ad7012e32
4 changed files with 78 additions and 11 deletions

View file

@ -135,6 +135,27 @@
methods: {
artistMenu (event) {
let self = this
let followAction = "follow"
let followActions = {
follow: {
name: "Follow Artist",
action: ()=>{
self.app.cfg.home.followedArtists.push(self.data.id)
}
},
unfollow: {
name: "Unfollow Artist",
action: ()=>{
let index = self.app.cfg.home.followedArtists.indexOf(self.data.id)
if (index > -1) {
self.app.cfg.home.followedArtists.splice(index, 1)
}
}
}
}
if(this.app.cfg.home.followedArtists.includes(self.data.id)) {
followAction = "unfollow"
}
CiderContextMenu.Create(event, {
items: [
{
@ -145,10 +166,7 @@
})
}
},
{
name: "Follow Artist",
action: ()=>{}
},
followActions[followAction],
{
name: "Share",
action: ()=>{}