Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
c1971fd8
Commit
c1971fd8
authored
Jun 22, 2024
by
Timothy J. Baek
Browse files
refac: show default instead of none
parent
cf6447eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/lib/components/chat/Settings/Valves.svelte
src/lib/components/chat/Settings/Valves.svelte
+7
-1
No files found.
src/lib/components/chat/Settings/Valves.svelte
View file @
c1971fd8
...
@@ -189,7 +189,13 @@
...
@@ -189,7 +189,13 @@
}}
}}
>
>
{#if (valves[property] ?? null) === null}
{#if (valves[property] ?? null) === null}
<span class="ml-2 self-center"> {$i18n.t('None')} </span>
<span class="ml-2 self-center">
{#if (valvesSpec?.required ?? []).includes(property)}
{$i18n.t('None')}
{:else}
{$i18n.t('Default')}
{/if}
</span>
{:else}
{:else}
<span class="ml-2 self-center"> {$i18n.t('Custom')} </span>
<span class="ml-2 self-center"> {$i18n.t('Custom')} </span>
{/if}
{/if}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment