web/settings/local: hide the webcodecs toggle if the feature not enabled

This commit is contained in:
wukko
2025-03-05 20:36:09 +06:00
parent a3c9ccf5df
commit e61ac61e20

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import env from "$lib/env";
import { t } from "$lib/i18n/translations";
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
@@ -14,6 +15,7 @@
/>
</SettingsCategory>
{#if env.ENABLE_WEBCODECS}
<SettingsCategory sectionId="webcodecs" title={$t("settings.local.webcodecs")} beta>
<SettingsToggle
settingContext="advanced"
@@ -22,3 +24,4 @@
description={$t("settings.local.webcodecs.description")}
/>
</SettingsCategory>
{/if}