[web-src] Refactor showing notification after queue add action

This commit is contained in:
chme
2018-12-23 09:54:02 +01:00
parent b0bfa6be60
commit 67af2cc6a9
10 changed files with 30 additions and 58 deletions

View File

@@ -50,16 +50,12 @@ export default {
queue_add: function () {
this.$emit('close')
webapi.queue_add(this.playlist.uri).then(() =>
this.$store.dispatch('add_notification', { text: 'Playlist appended to queue', type: 'info', timeout: 2000 })
)
webapi.queue_add(this.playlist.uri)
},
queue_add_next: function () {
this.$emit('close')
webapi.queue_add_next(this.playlist.uri).then(() =>
this.$store.dispatch('add_notification', { text: 'Album tracks appended to queue', type: 'info', timeout: 2000 })
)
webapi.queue_add_next(this.playlist.uri)
},
open_playlist: function () {