See #1060: always append at the end of the queue
This commit is contained in:
parent
a8606a6895
commit
c43fe461c4
|
@ -36,7 +36,7 @@ const RADIOS = {
|
||||||
if (event.actor.local_id === current.objectId.username) {
|
if (event.actor.local_id === current.objectId.username) {
|
||||||
axios.get(`tracks/${event.object.local_id}`).then((response) => {
|
axios.get(`tracks/${event.object.local_id}`).then((response) => {
|
||||||
if (response.data.uploads.length > 0) {
|
if (response.data.uploads.length > 0) {
|
||||||
store.dispatch('queue/append', {track: response.data, index: store.state.queue.currentIndex + 1})
|
store.dispatch('queue/append', {track: response.data})
|
||||||
this.offset += 1
|
this.offset += 1
|
||||||
}
|
}
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
|
|
Loading…
Reference in New Issue