mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
refac
This commit is contained in:
@@ -745,7 +745,7 @@
|
||||
if ($settings?.temporaryChatByDefault ?? false) {
|
||||
if ($temporaryChatEnabled === false) {
|
||||
await temporaryChatEnabled.set(true);
|
||||
} else {
|
||||
} else if ($temporaryChatEnabled === null) {
|
||||
// if set to null set to false; refer to temp chat toggle click handler
|
||||
await temporaryChatEnabled.set(false);
|
||||
}
|
||||
|
||||
@@ -117,9 +117,9 @@
|
||||
on:click={async () => {
|
||||
if (($settings?.temporaryChatByDefault ?? false) && $temporaryChatEnabled) {
|
||||
// for proper initNewChat handling
|
||||
temporaryChatEnabled.set(null);
|
||||
await temporaryChatEnabled.set(null);
|
||||
} else {
|
||||
temporaryChatEnabled.set(!$temporaryChatEnabled);
|
||||
await temporaryChatEnabled.set(!$temporaryChatEnabled);
|
||||
}
|
||||
|
||||
await goto('/');
|
||||
|
||||
Reference in New Issue
Block a user