mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-02 08:26:22 +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>
|
</div>
|
||||||
</SettingsCategory>
|
</SettingsCategory>
|
||||||
|
|
||||||
{#if $settings.processing.enableCustomInstances}
|
<SettingsCategory
|
||||||
<SettingsCategory
|
sectionId="community"
|
||||||
sectionId="community"
|
title={$t("settings.processing.access_key")}
|
||||||
title={$t("settings.processing.access_key")}
|
>
|
||||||
>
|
<div class="category-inside-group">
|
||||||
<div class="category-inside-group">
|
<SettingsToggle
|
||||||
<SettingsToggle
|
settingContext="processing"
|
||||||
|
settingId="enableCustomApiKey"
|
||||||
|
title={$t("settings.processing.access_key.title")}
|
||||||
|
/>
|
||||||
|
{#if $settings.processing.enableCustomApiKey}
|
||||||
|
<SettingsInput
|
||||||
settingContext="processing"
|
settingContext="processing"
|
||||||
settingId="enableCustomApiKey"
|
settingId="customApiKey"
|
||||||
title={$t("settings.processing.access_key.title")}
|
placeholder="00000000-0000-0000-0000-000000000000"
|
||||||
|
type="uuid"
|
||||||
/>
|
/>
|
||||||
{#if $settings.processing.enableCustomApiKey}
|
{/if}
|
||||||
<SettingsInput
|
</div>
|
||||||
settingContext="processing"
|
<div class="subtext">
|
||||||
settingId="customApiKey"
|
{$t("settings.processing.access_key.description")}
|
||||||
placeholder="00000000-0000-0000-0000-000000000000"
|
</div>
|
||||||
type="uuid"
|
</SettingsCategory>
|
||||||
/>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
<div class="subtext">
|
|
||||||
{$t("settings.processing.access_key.description")}
|
|
||||||
</div>
|
|
||||||
</SettingsCategory>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.category-inside-group {
|
.category-inside-group {
|
||||||
|
|
Loading…
Reference in a new issue