mirror of
https://github.com/open-webui/open-webui
synced 2025-05-29 01:32:27 +00:00
fix: automatic1111 auth key should not be required
This commit is contained in:
parent
4514595811
commit
f0a8aca0e3
@ -282,6 +282,7 @@
|
|||||||
<SensitiveInput
|
<SensitiveInput
|
||||||
placeholder={$i18n.t('Enter api auth string (e.g. username:password)')}
|
placeholder={$i18n.t('Enter api auth string (e.g. username:password)')}
|
||||||
bind:value={AUTOMATIC1111_API_AUTH}
|
bind:value={AUTOMATIC1111_API_AUTH}
|
||||||
|
required={false}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
|
<div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let value: string = '';
|
export let value: string = '';
|
||||||
export let placeholder = '';
|
export let placeholder = '';
|
||||||
|
export let required = true;
|
||||||
export let readOnly = false;
|
export let readOnly = false;
|
||||||
export let outerClassName = 'flex flex-1';
|
export let outerClassName = 'flex flex-1';
|
||||||
export let inputClassName =
|
export let inputClassName =
|
||||||
@ -15,7 +16,7 @@
|
|||||||
class={inputClassName}
|
class={inputClassName}
|
||||||
{placeholder}
|
{placeholder}
|
||||||
bind:value
|
bind:value
|
||||||
required={!readOnly}
|
required={required && !readOnly}
|
||||||
disabled={readOnly}
|
disabled={readOnly}
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
{...{ type: show ? 'text' : 'password' }}
|
{...{ type: show ? 'text' : 'password' }}
|
||||||
|
Loading…
Reference in New Issue
Block a user