From 835effd6da1d9ae0c6d94443bfacc0ddcb70e87d Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 23 Jul 2020 11:40:02 +0300 Subject: [PATCH] Fixed reactive charts for dark mode --- src/views/chart/BarChartDemo.vue | 2 +- src/views/chart/ComboChartDemo.vue | 2 +- src/views/chart/DoughnutChartDemo.vue | 2 +- src/views/chart/LineChartDemo.vue | 2 +- src/views/chart/PieChartDemo.vue | 2 +- src/views/chart/PolarAreaChartDemo.vue | 2 +- src/views/chart/RadarChartDemo.vue | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/chart/BarChartDemo.vue b/src/views/chart/BarChartDemo.vue index afd9b2613..98eaaf0c3 100755 --- a/src/views/chart/BarChartDemo.vue +++ b/src/views/chart/BarChartDemo.vue @@ -39,7 +39,7 @@ import EventBus from '@/EventBus'; export default { mounted() { - EventBus.$on('change-theme', () => { + EventBus.$on('change-theme', event => { if (event.dark) this.applyDarkTheme(); else diff --git a/src/views/chart/ComboChartDemo.vue b/src/views/chart/ComboChartDemo.vue index fcf308ff7..c54ace9f1 100755 --- a/src/views/chart/ComboChartDemo.vue +++ b/src/views/chart/ComboChartDemo.vue @@ -23,7 +23,7 @@ import EventBus from '@/EventBus'; export default { mounted() { - EventBus.$on('change-theme', () => { + EventBus.$on('change-theme', event => { if (event.dark) this.applyDarkTheme(); else diff --git a/src/views/chart/DoughnutChartDemo.vue b/src/views/chart/DoughnutChartDemo.vue index d5b1b17a2..30a80d35e 100755 --- a/src/views/chart/DoughnutChartDemo.vue +++ b/src/views/chart/DoughnutChartDemo.vue @@ -23,7 +23,7 @@ import EventBus from '@/EventBus'; export default { mounted() { - EventBus.$on('change-theme', () => { + EventBus.$on('change-theme', event => { if (event.dark) this.chartOptions = this.getDarkTheme(); else diff --git a/src/views/chart/LineChartDemo.vue b/src/views/chart/LineChartDemo.vue index 231a06bc2..b4bef666b 100755 --- a/src/views/chart/LineChartDemo.vue +++ b/src/views/chart/LineChartDemo.vue @@ -34,7 +34,7 @@ import EventBus from '@/EventBus'; export default { mounted() { - EventBus.$on('change-theme', () => { + EventBus.$on('change-theme', event => { if (event.dark) this.applyDarkTheme(); else diff --git a/src/views/chart/PieChartDemo.vue b/src/views/chart/PieChartDemo.vue index 7aa9ad0f8..88abf8fc0 100755 --- a/src/views/chart/PieChartDemo.vue +++ b/src/views/chart/PieChartDemo.vue @@ -23,7 +23,7 @@ import EventBus from '@/EventBus'; export default { mounted() { - EventBus.$on('change-theme', () => { + EventBus.$on('change-theme', event => { if (event.dark) this.chartOptions = this.getDarkTheme(); else diff --git a/src/views/chart/PolarAreaChartDemo.vue b/src/views/chart/PolarAreaChartDemo.vue index 4806d38c2..22a1f39a9 100755 --- a/src/views/chart/PolarAreaChartDemo.vue +++ b/src/views/chart/PolarAreaChartDemo.vue @@ -23,7 +23,7 @@ import EventBus from '@/EventBus'; export default { mounted() { - EventBus.$on('change-theme', () => { + EventBus.$on('change-theme', event => { if (event.dark) this.chartOptions = this.getDarkTheme(); else diff --git a/src/views/chart/RadarChartDemo.vue b/src/views/chart/RadarChartDemo.vue index 546bb50fa..acf4310f1 100755 --- a/src/views/chart/RadarChartDemo.vue +++ b/src/views/chart/RadarChartDemo.vue @@ -23,7 +23,7 @@ import EventBus from '@/EventBus'; export default { mounted() { - EventBus.$on('change-theme', () => { + EventBus.$on('change-theme', event => { if (event.dark) this.chartOptions = this.getDarkTheme(); else