No sponsorship in light mode

This commit is contained in:
benweet 2018-03-25 00:48:18 +00:00
parent d133fc5c28
commit 9c4d821812
2 changed files with 4 additions and 4 deletions

View File

@ -136,7 +136,7 @@ export default {
this.$store.commit('explorer/setDragSourceId', this.node.item.id); this.$store.commit('explorer/setDragSourceId', this.node.item.id);
// Fix for Firefox // Fix for Firefox
// See https://stackoverflow.com/a/3977637/1333165 // See https://stackoverflow.com/a/3977637/1333165
evt.dataTransfer.setData('Text', this.node.item.id); evt.dataTransfer.setData('Text', '');
}, },
onDrop() { onDrop() {
const sourceNode = this.$store.getters['explorer/dragSourceNode']; const sourceNode = this.$store.getters['explorer/dragSourceNode'];

View File

@ -1,4 +1,4 @@
// import createLogger from 'vuex/dist/logger'; import createLogger from 'vuex/dist/logger';
import Vue from 'vue'; import Vue from 'vue';
import Vuex from 'vuex'; import Vuex from 'vuex';
import utils from '../services/utils'; import utils from '../services/utils';
@ -61,7 +61,7 @@ const store = new Vuex.Store({
}, },
isSponsor: (state, getters) => { isSponsor: (state, getters) => {
const sponsorToken = getters['workspace/sponsorToken']; const sponsorToken = getters['workspace/sponsorToken'];
return state.monetizeSponsor || (sponsorToken && sponsorToken.isSponsor); return state.light || state.monetizeSponsor || (sponsorToken && sponsorToken.isSponsor);
}, },
}, },
mutations: { mutations: {
@ -124,7 +124,7 @@ const store = new Vuex.Store({
}, },
}, },
strict: debug, strict: debug,
// plugins: debug ? [createLogger()] : [], plugins: debug ? [createLogger()] : [],
}); });
setInterval(() => { setInterval(() => {