Skip to content

Commit

Permalink
add type="password" to OpenAI api key
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoMac1 committed Oct 9, 2024
1 parent 8bc70ab commit b332a85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/FieldInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
export let placeholder: LocalizedString | string | undefined = undefined;
export let disabled: boolean | undefined = false;
export let value: string | number | undefined = undefined;
export let type: 'text' | 'number' = 'text';
export let type: 'text' | 'number' | 'password' = 'text';
// Props for numeric inputs
export let min: number | undefined = undefined;
Expand Down Expand Up @@ -47,7 +47,7 @@
id={name}
{disabled}
{placeholder}
type="text"
{...{ type }}
bind:value
on:input
on:keyup
Expand Down
1 change: 1 addition & 0 deletions src/routes/settings/OpenAI.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
label={$LL.apiKey()}
bind:value={openaiApiKey}
placeholder={$LL.noApiKey()}
type="password"
>
<svelte:fragment slot="help">
{#if openaiApiKey === 'ollama' || openaiServerStatus === 'disconnected'}
Expand Down

0 comments on commit b332a85

Please sign in to comment.