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
3c7f45ce
Commit
3c7f45ce
authored
Jun 27, 2024
by
Timothy J. Baek
Browse files
fix
parent
c07da8d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/lib/components/admin/Settings/Connections.svelte
src/lib/components/admin/Settings/Connections.svelte
+4
-1
src/lib/components/common/SensitiveInput.svelte
src/lib/components/common/SensitiveInput.svelte
+1
-1
No files found.
src/lib/components/admin/Settings/Connections.svelte
View file @
3c7f45ce
...
@@ -230,7 +230,10 @@
...
@@ -230,7 +230,10 @@
{/if}
{/if}
</div>
</div>
<SensitiveInput placeholder={$i18n.t('API Key')} value={OPENAI_API_KEYS[idx]} />
<SensitiveInput
placeholder={$i18n.t('API Key')}
bind:value={OPENAI_API_KEYS[idx]}
/>
<div class="self-center flex items-center">
<div class="self-center flex items-center">
{#if idx === 0}
{#if idx === 0}
<button
<button
...
...
src/lib/components/common/SensitiveInput.svelte
View file @
3c7f45ce
<script lang="ts">
<script lang="ts">
export let value: string;
export let value: string
= ''
;
export let placeholder = '';
export let placeholder = '';
export let readOnly = false;
export let readOnly = false;
export let outerClassName = 'flex flex-1';
export let outerClassName = 'flex flex-1';
...
...
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