Fixed theme change listeners

pull/2206/head
Cagatay Civici 2022-02-23 22:53:57 +03:00
parent 410a2872e4
commit c1e6d6bf5c
8 changed files with 8 additions and 8 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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 );

View File

@ -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();

View File

@ -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);

View File

@ -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 );

View File

@ -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 );

View File

@ -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);