Fixed reactive charts for dark mode
parent
10e9d8e004
commit
835effd6da
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue