Optimized light mode

This commit is contained in:
Benoit Schweblin 2018-03-30 13:44:23 +01:00
parent bde9cf0596
commit d6a67f7309
2 changed files with 6 additions and 3 deletions

View File

@ -75,7 +75,7 @@ export default {
}),
computed: {
panel() {
return this.$store.getters['data/layoutSettings'].sideBarPanel;
return !this.$store.state.light && this.$store.getters['data/layoutSettings'].sideBarPanel;
},
panelName() {
return panelNames[this.panel];

View File

@ -23,8 +23,11 @@ const isGoogleSponsor = () => {
const checkPayment = () => {
const currentDate = Date.now();
if (!isGoogleSponsor() && networkSvc.isUserActive() && !store.state.offline &&
lastCheck + checkPaymentEvery < currentDate
if (!isGoogleSponsor()
&& networkSvc.isUserActive()
&& !store.state.offline
&& !store.state.light
&& lastCheck + checkPaymentEvery < currentDate
) {
lastCheck = currentDate;
getMonetize()