From e78529c7012f13b68d33dcfabfc7564be3023a63 Mon Sep 17 00:00:00 2001 From: Quentin Guillemin Date: Mon, 5 Feb 2024 17:04:06 +0100 Subject: [PATCH] fix: dark theme --- .../webapp/src/components/dialogs/SettingsDialog.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/src/components/dialogs/SettingsDialog.vue b/src/main/webapp/src/components/dialogs/SettingsDialog.vue index 8f8cb364..cad1b662 100644 --- a/src/main/webapp/src/components/dialogs/SettingsDialog.vue +++ b/src/main/webapp/src/components/dialogs/SettingsDialog.vue @@ -42,9 +42,13 @@ watch( { immediate: true }, ); -watch(isDark, (newValue): void => { - setDarkTheme(newValue); -}); +watch( + isDark, + (newValue): void => { + setDarkTheme(newValue); + }, + { immediate: true }, +); const onClose = (): void => { isSettings.value = false;