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: { computed: {
panel() { panel() {
return this.$store.getters['data/layoutSettings'].sideBarPanel; return !this.$store.state.light && this.$store.getters['data/layoutSettings'].sideBarPanel;
}, },
panelName() { panelName() {
return panelNames[this.panel]; return panelNames[this.panel];

View File

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