This commit is contained in:
Timothy Jaeryang Baek 2024-11-11 21:24:30 -08:00
parent 0809eb79b8
commit 1277579f71
2 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@
})}
placement="top-start"
>
{#if !(config?.enabled ?? true)}
{#if !(config?.enable ?? true)}
<div
class="absolute top-0 bottom-0 left-0 right-0 opacity-60 bg-white dark:bg-gray-900 z-10"
></div>

View File

@ -26,7 +26,7 @@
let key = '';
let prefixId = '';
let enabled = true;
let enable = true;
let modelId = '';
let modelIds = [];
@ -63,7 +63,7 @@
url,
key,
config: {
enabled: enabled,
enable: enable,
prefix_id: prefixId,
model_ids: modelIds
}
@ -85,7 +85,7 @@
url = connection.url;
key = connection.key;
enabled = connection.config?.enabled ?? true;
enable = connection.config?.enable ?? true;
prefixId = connection.config?.prefix_id ?? '';
modelIds = connection.config?.model_ids ?? [];
}
@ -179,8 +179,8 @@
</Tooltip>
<div class="flex flex-col flex-shrink-0 self-end">
<Tooltip content={enabled ? $i18n.t('Enabled') : $i18n.t('Disabled')}>
<Switch bind:state={enabled} />
<Tooltip content={enable ? $i18n.t('Enabled') : $i18n.t('Disabled')}>
<Switch bind:state={enable} />
</Tooltip>
</div>
</div>