Commit 0661f73f authored by Gautam Chitnis's avatar Gautam Chitnis

Fix (playlist buttons): Playlist remove button fixed

This commit fixes the remove button functionality.
Using the button now successfully removes the first item from the playlist and updates the view accordingly.
Removal is also reflected in the main interface.

Gautam C.
parent 31dd8f4e
......@@ -10,8 +10,8 @@ Vue.component('playlist-buttons', {
},
removeCurrent: function ()
{
sendCommand(0,"command=pl_delete&id="+data.children[0].children[0].id);
bus.$emit('removeItem',data.children[0].children[0].id);
sendCommand(0,"command=pl_delete&id="+this.$parent.$parent.$data.playlistItems[0].id);
bus.$emit('removeItem',this.$parent.$parent.$data.playlistItems[0].id);
}
},
created: function()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment