From 06f53a688230b677233f1cc204d72c9844e4b622 Mon Sep 17 00:00:00 2001 From: Jannik Streidl Date: Thu, 22 Feb 2024 15:35:31 +0100 Subject: [PATCH] settings fix -> updates value directly --- src/lib/components/chat/Settings/Interface.svelte | 3 +++ src/lib/components/chat/WhatsChangedModal.svelte | 12 +++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/Settings/Interface.svelte b/src/lib/components/chat/Settings/Interface.svelte index 4af5c0bf2..8ddb0133b 100644 --- a/src/lib/components/chat/Settings/Interface.svelte +++ b/src/lib/components/chat/Settings/Interface.svelte @@ -32,6 +32,9 @@ const toggleenableWhatsChanged = async () => { enableWhatsChanged = !enableWhatsChanged; + if (enableWhatsChanged) { + showWhatsChanged.update((value) => true); + } saveSettings({ enableWhatsChanged: enableWhatsChanged }); }; diff --git a/src/lib/components/chat/WhatsChangedModal.svelte b/src/lib/components/chat/WhatsChangedModal.svelte index 85f5ef980..057416ec0 100644 --- a/src/lib/components/chat/WhatsChangedModal.svelte +++ b/src/lib/components/chat/WhatsChangedModal.svelte @@ -4,19 +4,25 @@ import { WEBUI_NAME, WEB_UI_VERSION, RELEASE_NOTES } from '$lib/constants'; import { config, showWhatsChanged } from '$lib/stores'; + export let show = false; + function toggleVisibility() { showWhatsChanged.update((value) => !value); } + + function handleClick() { + toggleVisibility(); + } - +
{WEBUI_NAME}
-