mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-27 09:47:34 +03:00
put base branch switching behind a feature flag
This commit is contained in:
parent
3326ae6b81
commit
3b7387a4b3
@ -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'}
|
||||
|
Loading…
Reference in New Issue
Block a user