web: remove instance override warning, use custom api right away
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<script lang="ts">
|
||||
import env from "$lib/env";
|
||||
import settings from "$lib/state/settings";
|
||||
|
||||
import { t } from "$lib/i18n/translations";
|
||||
@@ -7,26 +6,8 @@
|
||||
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
|
||||
import SettingsCategory from "$components/settings/SettingsCategory.svelte";
|
||||
import CustomInstanceInput from "$components/settings/CustomInstanceInput.svelte";
|
||||
|
||||
$: overrideDisabled = $settings.processing.enableCustomInstances;
|
||||
</script>
|
||||
|
||||
{#if env.DEFAULT_API}
|
||||
<SettingsCategory
|
||||
sectionId="override"
|
||||
title={$t("settings.processing.override")}
|
||||
disabled={overrideDisabled}
|
||||
>
|
||||
<SettingsToggle
|
||||
settingContext="processing"
|
||||
settingId="allowDefaultOverride"
|
||||
title={$t("settings.processing.override.title")}
|
||||
description={$t("settings.processing.override.description")}
|
||||
disabled={overrideDisabled}
|
||||
/>
|
||||
</SettingsCategory>
|
||||
{/if}
|
||||
|
||||
<SettingsCategory
|
||||
sectionId="community"
|
||||
title={$t("settings.processing.community")}
|
||||
|
||||
Reference in New Issue
Block a user