add play next

This commit is contained in:
Thomas Amland
2020-08-06 18:44:36 +02:00
parent ccad88da64
commit b949db6efd
3 changed files with 21 additions and 9 deletions
+6
View File
@@ -3,6 +3,9 @@
<template #button-content>
<Icon icon="three-dots-vertical"/>
</template>
<b-dropdown-item-button @click="playNext()">
Play next
</b-dropdown-item-button>
<b-dropdown-item-button @click="toggleStarred()">
{{ starred ? 'Unstar' : 'Star' }}
</b-dropdown-item-button>
@@ -30,6 +33,9 @@
}
this.starred = !this.starred;
},
playNext() {
return this.$store.dispatch("player/playNext", this.track);
},
}
});
</script>