From c1971fd8d7143313bfce3c82a7eb5208ae47bde3 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 22 Jun 2024 13:01:26 -0700 Subject: [PATCH] refac: show default instead of none --- src/lib/components/chat/Settings/Valves.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Settings/Valves.svelte b/src/lib/components/chat/Settings/Valves.svelte index f41d0e672..115dd3bd1 100644 --- a/src/lib/components/chat/Settings/Valves.svelte +++ b/src/lib/components/chat/Settings/Valves.svelte @@ -189,7 +189,13 @@ }} > {#if (valves[property] ?? null) === null} - {$i18n.t('None')} + + {#if (valvesSpec?.required ?? []).includes(property)} + {$i18n.t('None')} + {:else} + {$i18n.t('Default')} + {/if} + {:else} {$i18n.t('Custom')} {/if}