fix: automatic1111 auth key should not be required

This commit is contained in:
Timothy J. Baek 2024-07-16 10:33:05 +02:00
parent 4514595811
commit f0a8aca0e3
2 changed files with 3 additions and 1 deletions

View File

@ -282,6 +282,7 @@
<SensitiveInput
placeholder={$i18n.t('Enter api auth string (e.g. username:password)')}
bind:value={AUTOMATIC1111_API_AUTH}
required={false}
/>
<div class="mt-2 text-xs text-gray-400 dark:text-gray-500">

View File

@ -1,6 +1,7 @@
<script lang="ts">
export let value: string = '';
export let placeholder = '';
export let required = true;
export let readOnly = false;
export let outerClassName = 'flex flex-1';
export let inputClassName =
@ -15,7 +16,7 @@
class={inputClassName}
{placeholder}
bind:value
required={!readOnly}
required={required && !readOnly}
disabled={readOnly}
autocomplete="off"
{...{ type: show ? 'text' : 'password' }}