Fixed reactive charts for dark mode

pull/411/head
cagataycivici 2020-07-23 11:40:02 +03:00
parent 10e9d8e004
commit 835effd6da
7 changed files with 7 additions and 7 deletions

View File

@ -39,7 +39,7 @@ import EventBus from '@/EventBus';
export default { export default {
mounted() { mounted() {
EventBus.$on('change-theme', () => { EventBus.$on('change-theme', event => {
if (event.dark) if (event.dark)
this.applyDarkTheme(); this.applyDarkTheme();
else else

View File

@ -23,7 +23,7 @@ import EventBus from '@/EventBus';
export default { export default {
mounted() { mounted() {
EventBus.$on('change-theme', () => { EventBus.$on('change-theme', event => {
if (event.dark) if (event.dark)
this.applyDarkTheme(); this.applyDarkTheme();
else else

View File

@ -23,7 +23,7 @@ import EventBus from '@/EventBus';
export default { export default {
mounted() { mounted() {
EventBus.$on('change-theme', () => { EventBus.$on('change-theme', event => {
if (event.dark) if (event.dark)
this.chartOptions = this.getDarkTheme(); this.chartOptions = this.getDarkTheme();
else else

View File

@ -34,7 +34,7 @@ import EventBus from '@/EventBus';
export default { export default {
mounted() { mounted() {
EventBus.$on('change-theme', () => { EventBus.$on('change-theme', event => {
if (event.dark) if (event.dark)
this.applyDarkTheme(); this.applyDarkTheme();
else else

View File

@ -23,7 +23,7 @@ import EventBus from '@/EventBus';
export default { export default {
mounted() { mounted() {
EventBus.$on('change-theme', () => { EventBus.$on('change-theme', event => {
if (event.dark) if (event.dark)
this.chartOptions = this.getDarkTheme(); this.chartOptions = this.getDarkTheme();
else else

View File

@ -23,7 +23,7 @@ import EventBus from '@/EventBus';
export default { export default {
mounted() { mounted() {
EventBus.$on('change-theme', () => { EventBus.$on('change-theme', event => {
if (event.dark) if (event.dark)
this.chartOptions = this.getDarkTheme(); this.chartOptions = this.getDarkTheme();
else else

View File

@ -23,7 +23,7 @@ import EventBus from '@/EventBus';
export default { export default {
mounted() { mounted() {
EventBus.$on('change-theme', () => { EventBus.$on('change-theme', event => {
if (event.dark) if (event.dark)
this.chartOptions = this.getDarkTheme(); this.chartOptions = this.getDarkTheme();
else else