mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
1f91e5d3c6
commit
01f438c3fe
2 changed files with 3 additions and 3 deletions
|
|
@ -745,7 +745,7 @@
|
||||||
if ($settings?.temporaryChatByDefault ?? false) {
|
if ($settings?.temporaryChatByDefault ?? false) {
|
||||||
if ($temporaryChatEnabled === false) {
|
if ($temporaryChatEnabled === false) {
|
||||||
await temporaryChatEnabled.set(true);
|
await temporaryChatEnabled.set(true);
|
||||||
} else {
|
} else if ($temporaryChatEnabled === null) {
|
||||||
// if set to null set to false; refer to temp chat toggle click handler
|
// if set to null set to false; refer to temp chat toggle click handler
|
||||||
await temporaryChatEnabled.set(false);
|
await temporaryChatEnabled.set(false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -117,9 +117,9 @@
|
||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
if (($settings?.temporaryChatByDefault ?? false) && $temporaryChatEnabled) {
|
if (($settings?.temporaryChatByDefault ?? false) && $temporaryChatEnabled) {
|
||||||
// for proper initNewChat handling
|
// for proper initNewChat handling
|
||||||
temporaryChatEnabled.set(null);
|
await temporaryChatEnabled.set(null);
|
||||||
} else {
|
} else {
|
||||||
temporaryChatEnabled.set(!$temporaryChatEnabled);
|
await temporaryChatEnabled.set(!$temporaryChatEnabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
await goto('/');
|
await goto('/');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue