mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-22 10:46:19 +01:00
web/settings/instances: always display the access key section
This commit is contained in:
parent
adb1cacd9d
commit
6129198024
1 changed files with 21 additions and 23 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue