From 496d440e5b00d6afa4f280c5367f1c6fa834416a Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 9 Jul 2024 21:41:53 +0600 Subject: [PATCH] web/settings: refresh the locale state when auto mode is toggled --- .../settings/LanguageAutoToggle.svelte | 29 +++++++++++++++++++ .../settings/LanguageDropdown.svelte | 2 +- .../settings/general/appearance/+page.svelte | 5 ++-- 3 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 web/src/components/settings/LanguageAutoToggle.svelte diff --git a/web/src/components/settings/LanguageAutoToggle.svelte b/web/src/components/settings/LanguageAutoToggle.svelte new file mode 100644 index 00000000..8be7a95f --- /dev/null +++ b/web/src/components/settings/LanguageAutoToggle.svelte @@ -0,0 +1,29 @@ + + + diff --git a/web/src/components/settings/LanguageDropdown.svelte b/web/src/components/settings/LanguageDropdown.svelte index 261ae692..9f91be7a 100644 --- a/web/src/components/settings/LanguageDropdown.svelte +++ b/web/src/components/settings/LanguageDropdown.svelte @@ -27,7 +27,7 @@
diff --git a/web/src/routes/settings/general/appearance/+page.svelte b/web/src/routes/settings/general/appearance/+page.svelte index d55b7069..93598a76 100644 --- a/web/src/routes/settings/general/appearance/+page.svelte +++ b/web/src/routes/settings/general/appearance/+page.svelte @@ -9,6 +9,7 @@ import SettingsToggle from "$components/buttons/SettingsToggle.svelte"; import LanguageDropdown from "$components/settings/LanguageDropdown.svelte"; + import LanguageAutoToggle from "$components/settings/LanguageAutoToggle.svelte"; -