From 30804d993eb3c73768a6f2d07810d1ebd4115cde Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Fri, 13 Oct 2023 23:06:19 +0300 Subject: [PATCH] Fixed light-dark switch on chart demo --- app.vue | 1 + doc/chart/BasicDoc.vue | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/app.vue b/app.vue index d1525c4c7..5a1e520f8 100644 --- a/app.vue +++ b/app.vue @@ -32,6 +32,7 @@ export default { this.$primevue.changeTheme(this.$appState.theme, event.theme, 'theme-link', () => { this.$appState.theme = event.theme; this.$appState.darkTheme = event.dark; + EventBus.emit('theme-change-complete', { theme: event.theme, dark: event.dark }); }); }; diff --git a/doc/chart/BasicDoc.vue b/doc/chart/BasicDoc.vue index 36f3b7a1e..b5f0b8aa9 100644 --- a/doc/chart/BasicDoc.vue +++ b/doc/chart/BasicDoc.vue @@ -12,7 +12,10 @@