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