From 9c4d821812a0b57b1af39d725135ee8ef735b009 Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 25 Mar 2018 00:48:18 +0000 Subject: [PATCH] No sponsorship in light mode --- src/components/ExplorerNode.vue | 2 +- src/store/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ExplorerNode.vue b/src/components/ExplorerNode.vue index 8ddaa19e..2a1c18dd 100644 --- a/src/components/ExplorerNode.vue +++ b/src/components/ExplorerNode.vue @@ -136,7 +136,7 @@ export default { this.$store.commit('explorer/setDragSourceId', this.node.item.id); // Fix for Firefox // See https://stackoverflow.com/a/3977637/1333165 - evt.dataTransfer.setData('Text', this.node.item.id); + evt.dataTransfer.setData('Text', ''); }, onDrop() { const sourceNode = this.$store.getters['explorer/dragSourceNode']; diff --git a/src/store/index.js b/src/store/index.js index 23cffdbd..c9d05079 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,4 +1,4 @@ -// import createLogger from 'vuex/dist/logger'; +import createLogger from 'vuex/dist/logger'; import Vue from 'vue'; import Vuex from 'vuex'; import utils from '../services/utils'; @@ -61,7 +61,7 @@ const store = new Vuex.Store({ }, isSponsor: (state, getters) => { const sponsorToken = getters['workspace/sponsorToken']; - return state.monetizeSponsor || (sponsorToken && sponsorToken.isSponsor); + return state.light || state.monetizeSponsor || (sponsorToken && sponsorToken.isSponsor); }, }, mutations: { @@ -124,7 +124,7 @@ const store = new Vuex.Store({ }, }, strict: debug, - // plugins: debug ? [createLogger()] : [], + plugins: debug ? [createLogger()] : [], }); setInterval(() => {