Added more stuff for future version of the library

This commit is contained in:
RemixDev
2020-08-16 01:34:55 +02:00
parent 94c4ca00a3
commit 5f2488846b
7 changed files with 17 additions and 7 deletions

View File

@@ -96,7 +96,7 @@ export default {
}
},
initQueue(data) {
const { queue: initQueue, queueComplete: initQueueComplete, currentItem, queueList: initQueueList } = data
const { queue: initQueue, queueComplete: initQueueComplete, currentItem, queueList: initQueueList, restored } = data
if (initQueueComplete.length) {
initQueueComplete.forEach(item => {
@@ -114,6 +114,8 @@ export default {
initQueueList[item].init = true
this.addToQueue(initQueueList[item])
})
if (restored) toast(this.$t('toasts.queueRestored'), 'done', true, 'restoring_queue')
},
addToQueue(queueItem, current = false) {
this.queueList[queueItem.uuid] = queueItem