From 3b7387a4b3579214a3bffa268e4c0abf9983d825 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Thu, 2 May 2024 11:58:31 +0200 Subject: [PATCH] put base branch switching behind a feature flag --- app/src/routes/[projectId]/settings/+page.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/routes/[projectId]/settings/+page.svelte b/app/src/routes/[projectId]/settings/+page.svelte index 2ac420d41..e3f0a0753 100644 --- a/app/src/routes/[projectId]/settings/+page.svelte +++ b/app/src/routes/[projectId]/settings/+page.svelte @@ -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 @@ - + {#if $baseBranchSwitching} + + {/if} {#if $platformName != 'win32'}