web/processing: hide override section when DEFAULT_API isn't present

This commit is contained in:
wukko 2024-08-29 13:20:17 +06:00
parent e59b7fd375
commit 5dc0cf1772
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -1,15 +1,18 @@
<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>
<SettingsCategory sectionId="override" title={$t("settings.processing.override")}> {#if env.DEFAULT_API}
<SettingsToggle <SettingsCategory sectionId="override" title={$t("settings.processing.override")}>
settingContext="processing" <SettingsToggle
settingId="allowDefaultOverride" settingContext="processing"
title={$t("settings.processing.override.title")} settingId="allowDefaultOverride"
description={$t("settings.processing.override.description")} title={$t("settings.processing.override.title")}
/> description={$t("settings.processing.override.description")}
</SettingsCategory> />
</SettingsCategory>
{/if}