mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-21 10:16:05 -05:00
[web-src] Refactor showing notification after queue add action
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user