put base branch switching behind a feature flag

This commit is contained in:
Kiril Videlov 2024-05-02 11:58:31 +02:00
parent 3326ae6b81
commit 3b7387a4b3
No known key found for this signature in database

View File

@ -9,6 +9,7 @@
import SectionCard from '$lib/components/SectionCard.svelte';
import Spacer from '$lib/components/Spacer.svelte';
import ContentWrapper from '$lib/components/settings/ContentWrapper.svelte';
import { featureBaseBranchSwitching } from '$lib/config/uiFeatureFlags';
import { showError } from '$lib/notifications/toasts';
import { getContext } from '$lib/utils/context';
import * as toasts from '$lib/utils/toasts';
@ -16,6 +17,7 @@
import { from } from 'rxjs';
import { goto } from '$app/navigation';
const baseBranchSwitching = featureBaseBranchSwitching();
const projectService = getContext(ProjectService);
const project = getContext(Project);
const platformName = from(platform());
@ -40,7 +42,9 @@
</script>
<ContentWrapper title="Project settings">
<BaseBranchSwitch />
{#if $baseBranchSwitching}
<BaseBranchSwitch />
{/if}
<CloudForm />
<DetailsForm />
{#if $platformName != 'win32'}