web/settings/instances: always display the access key section

This commit is contained in:
wukko 2024-11-23 23:22:47 +06:00
parent adb1cacd9d
commit 6129198024
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -32,31 +32,29 @@
</div>
</SettingsCategory>
{#if $settings.processing.enableCustomInstances}
<SettingsCategory
sectionId="community"
title={$t("settings.processing.access_key")}
>
<div class="category-inside-group">
<SettingsToggle
<SettingsCategory
sectionId="community"
title={$t("settings.processing.access_key")}
>
<div class="category-inside-group">
<SettingsToggle
settingContext="processing"
settingId="enableCustomApiKey"
title={$t("settings.processing.access_key.title")}
/>
{#if $settings.processing.enableCustomApiKey}
<SettingsInput
settingContext="processing"
settingId="enableCustomApiKey"
title={$t("settings.processing.access_key.title")}
settingId="customApiKey"
placeholder="00000000-0000-0000-0000-000000000000"
type="uuid"
/>
{#if $settings.processing.enableCustomApiKey}
<SettingsInput
settingContext="processing"
settingId="customApiKey"
placeholder="00000000-0000-0000-0000-000000000000"
type="uuid"
/>
{/if}
</div>
<div class="subtext">
{$t("settings.processing.access_key.description")}
</div>
</SettingsCategory>
{/if}
{/if}
</div>
<div class="subtext">
{$t("settings.processing.access_key.description")}
</div>
</SettingsCategory>
<style>
.category-inside-group {