From 9140338c4e465667b04dc8a2f1ae1211d89ae95c Mon Sep 17 00:00:00 2001 From: Kylart Date: Mon, 25 Nov 2019 11:21:42 +0100 Subject: [PATCH] Adapted tracking to new helpers --- src/renderer/mixins/video/tracking.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/renderer/mixins/video/tracking.js b/src/renderer/mixins/video/tracking.js index ec2223e..47b6563 100644 --- a/src/renderer/mixins/video/tracking.js +++ b/src/renderer/mixins/video/tracking.js @@ -1,5 +1,4 @@ -import { mapMutations } from 'vuex' -import { localLists } from '@/store/helpers' +import { localLists, services, global } from '@/store/helpers' export default { beforeDestroy () { @@ -33,9 +32,10 @@ export default { methods: { // Brings __llAdd, __llMove, __llDelete, __llGet and __llInfo ...localLists.actions, - ...mapMutations({ - tellUser: 'setInfoSnackbar' - }), + // Brings __sSet, __sHasUser, __sIsConnected, __sGetList, __sUpdateList and __sExternal + ...services.actions, + // Brings __SetLeftDrawer and __TellUser + ...global.mutations, trackLocal (refName, refEp) { // Finding entries with the same name const lists = this.__llLists @@ -68,7 +68,7 @@ export default { // If the entry is fully watched, we should move it to seen if (entry.nbEp && +refEp === +entry.nbEp) { this.$log(`Moving ${entry.name} to \`seen\` list as it reached maximum known episode.`) - this.tellUser(`${entry.name} completed. Niiice!`) + this.__TellUser(`${entry.name} completed. Niiice!`) this.__llMove({ entry, target: 'seen' }) } @@ -88,7 +88,7 @@ export default { if (progress && +progress >= +refEp) return - this.$store.dispatch('services/updateList', { + this.__sUpdateList({ service: provider, args: { isEdit: true,