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