add 'add to queue'

This commit is contained in:
Thomas Amland
2020-08-07 10:21:11 +02:00
parent b949db6efd
commit d89bbfe5f7
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -6,6 +6,9 @@
<b-dropdown-item-button @click="playNext()">
Play next
</b-dropdown-item-button>
<b-dropdown-item-button @click="addToQueue()">
Add to queue
</b-dropdown-item-button>
<b-dropdown-item-button @click="toggleStarred()">
{{ starred ? 'Unstar' : 'Star' }}
</b-dropdown-item-button>
@@ -36,6 +39,9 @@
playNext() {
return this.$store.dispatch("player/playNext", this.track);
},
addToQueue() {
return this.$store.dispatch("player/addToQueue", this.track);
},
}
});
</script>