mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-04 16:14:24 +02:00
web/processing: hide override section when DEFAULT_API
isn't present
This commit is contained in:
parent
e59b7fd375
commit
5dc0cf1772
@ -1,10 +1,12 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import env from "$lib/env";
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
|
|
||||||
import SettingsCategory from "$components/settings/SettingsCategory.svelte";
|
|
||||||
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
|
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
|
||||||
|
import SettingsCategory from "$components/settings/SettingsCategory.svelte";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{#if env.DEFAULT_API}
|
||||||
<SettingsCategory sectionId="override" title={$t("settings.processing.override")}>
|
<SettingsCategory sectionId="override" title={$t("settings.processing.override")}>
|
||||||
<SettingsToggle
|
<SettingsToggle
|
||||||
settingContext="processing"
|
settingContext="processing"
|
||||||
@ -13,3 +15,4 @@
|
|||||||
description={$t("settings.processing.override.description")}
|
description={$t("settings.processing.override.description")}
|
||||||
/>
|
/>
|
||||||
</SettingsCategory>
|
</SettingsCategory>
|
||||||
|
{/if}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user