mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
web/processing: hide override section when DEFAULT_API
isn't present
This commit is contained in:
parent
e59b7fd375
commit
5dc0cf1772
1 changed files with 12 additions and 9 deletions
|
@ -1,15 +1,18 @@
|
|||
<script lang="ts">
|
||||
import env from "$lib/env";
|
||||
import { t } from "$lib/i18n/translations";
|
||||
|
||||
import SettingsCategory from "$components/settings/SettingsCategory.svelte";
|
||||
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
|
||||
import SettingsCategory from "$components/settings/SettingsCategory.svelte";
|
||||
</script>
|
||||
|
||||
<SettingsCategory sectionId="override" title={$t("settings.processing.override")}>
|
||||
<SettingsToggle
|
||||
settingContext="processing"
|
||||
settingId="allowDefaultOverride"
|
||||
title={$t("settings.processing.override.title")}
|
||||
description={$t("settings.processing.override.description")}
|
||||
/>
|
||||
</SettingsCategory>
|
||||
{#if env.DEFAULT_API}
|
||||
<SettingsCategory sectionId="override" title={$t("settings.processing.override")}>
|
||||
<SettingsToggle
|
||||
settingContext="processing"
|
||||
settingId="allowDefaultOverride"
|
||||
title={$t("settings.processing.override.title")}
|
||||
description={$t("settings.processing.override.description")}
|
||||
/>
|
||||
</SettingsCategory>
|
||||
{/if}
|
||||
|
|
Loading…
Reference in a new issue