Fixed theme change listeners
parent
410a2872e4
commit
c1e6d6bf5c
|
@ -47,7 +47,7 @@ export default {
|
||||||
else
|
else
|
||||||
this.applyLightTheme();
|
this.applyLightTheme();
|
||||||
};
|
};
|
||||||
EventBus.on('change-theme', this.themeChangeListener);
|
EventBus.on('theme-change', this.themeChangeListener);
|
||||||
|
|
||||||
if (this.isDarkTheme()) {
|
if (this.isDarkTheme()) {
|
||||||
this.applyDarkTheme();
|
this.applyDarkTheme();
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default {
|
||||||
else
|
else
|
||||||
this.applyLightTheme();
|
this.applyLightTheme();
|
||||||
};
|
};
|
||||||
EventBus.on('change-theme', this.themeChangeListener);
|
EventBus.on('theme-change', this.themeChangeListener);
|
||||||
|
|
||||||
if (this.isDarkTheme()) {
|
if (this.isDarkTheme()) {
|
||||||
this.applyDarkTheme();
|
this.applyDarkTheme();
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default {
|
||||||
else
|
else
|
||||||
this.chartOptions = this.getLightTheme();
|
this.chartOptions = this.getLightTheme();
|
||||||
}
|
}
|
||||||
EventBus.on('change-theme', this.themeChangeListener );
|
EventBus.on('theme-change', this.themeChangeListener );
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
EventBus.off('change-theme', this.themeChangeListener );
|
EventBus.off('change-theme', this.themeChangeListener );
|
||||||
|
|
|
@ -42,7 +42,7 @@ export default {
|
||||||
else
|
else
|
||||||
this.applyLightTheme();
|
this.applyLightTheme();
|
||||||
};
|
};
|
||||||
EventBus.on('change-theme', this.themeChangeListener);
|
EventBus.on('theme-change', this.themeChangeListener);
|
||||||
|
|
||||||
if (this.isDarkTheme()) {
|
if (this.isDarkTheme()) {
|
||||||
this.applyDarkTheme();
|
this.applyDarkTheme();
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default {
|
||||||
else
|
else
|
||||||
this.chartOptions = this.getLightTheme();
|
this.chartOptions = this.getLightTheme();
|
||||||
}
|
}
|
||||||
EventBus.on('change-theme', this.themeChangeListener );
|
EventBus.on('theme-change', this.themeChangeListener );
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
EventBus.off('change-theme', this.themeChangeListener);
|
EventBus.off('change-theme', this.themeChangeListener);
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default {
|
||||||
else
|
else
|
||||||
this.chartOptions = this.getLightTheme();
|
this.chartOptions = this.getLightTheme();
|
||||||
}
|
}
|
||||||
EventBus.on('change-theme', this.themeChangeListener );
|
EventBus.on('theme-change', this.themeChangeListener );
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
EventBus.off('change-theme', this.themeChangeListener );
|
EventBus.off('change-theme', this.themeChangeListener );
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default {
|
||||||
else
|
else
|
||||||
this.chartOptions = this.getLightTheme();
|
this.chartOptions = this.getLightTheme();
|
||||||
}
|
}
|
||||||
EventBus.on('change-theme', this.themeChangeListener );
|
EventBus.on('theme-change', this.themeChangeListener );
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
EventBus.off('change-theme', this.themeChangeListener );
|
EventBus.off('change-theme', this.themeChangeListener );
|
||||||
|
|
|
@ -185,7 +185,7 @@ export default {
|
||||||
this.$refs.tabview4.updateInkBar();
|
this.$refs.tabview4.updateInkBar();
|
||||||
}, 50);
|
}, 50);
|
||||||
};
|
};
|
||||||
EventBus.on('change-theme', this.themeChangeListener);
|
EventBus.on('theme-change', this.themeChangeListener);
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
clearTimeout(this.timeout);
|
clearTimeout(this.timeout);
|
||||||
|
|
Loading…
Reference in New Issue