Commit f0a8aca0 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: automatic1111 auth key should not be required

parent 45145958
...@@ -282,6 +282,7 @@ ...@@ -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">
......
<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 @@ ...@@ -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' }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment