Skip to content

Commit 3fdc81b

Browse files
committed
Make single branch mode feature flag admin only while under development
1 parent 2b8d543 commit 3fdc81b

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

apps/desktop/src/components/profileSettings/ExperimentalSettings.svelte

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,6 @@
7070
{/snippet}
7171
</SectionCard>
7272

73-
<SectionCard labelFor="single-branch" roundedTop={false} orientation="row">
74-
{#snippet title()}
75-
Single-branch mode
76-
{/snippet}
77-
{#snippet caption()}
78-
Stay in the workspace view when leaving the gitbutler/workspace branch.
79-
{/snippet}
80-
{#snippet actions()}
81-
<Toggle
82-
id="rules"
83-
checked={$settingsStore?.featureFlags.singleBranch}
84-
onclick={() =>
85-
settingsService.updateFeatureFlags({
86-
singleBranch: !$settingsStore?.featureFlags.singleBranch
87-
})}
88-
/>
89-
{/snippet}
90-
</SectionCard>
91-
9273
{#if $user?.role === 'admin'}
9374
<Spacer margin={20} />
9475
{#if $settingsStore?.featureFlags.actions}
@@ -110,6 +91,30 @@
11091
</SectionCard>
11192
{/if}
11293

94+
<SectionCard
95+
labelFor="single-branch"
96+
roundedTop={false}
97+
roundedBottom={false}
98+
orientation="row"
99+
>
100+
{#snippet title()}
101+
Single-branch mode
102+
{/snippet}
103+
{#snippet caption()}
104+
Stay in the workspace view when leaving the gitbutler/workspace branch.
105+
{/snippet}
106+
{#snippet actions()}
107+
<Toggle
108+
id="rules"
109+
checked={$settingsStore?.featureFlags.singleBranch}
110+
onclick={() =>
111+
settingsService.updateFeatureFlags({
112+
singleBranch: !$settingsStore?.featureFlags.singleBranch
113+
})}
114+
/>
115+
{/snippet}
116+
</SectionCard>
117+
113118
<SectionCard labelFor="codegen" roundedTop={false} roundedBottom={false} orientation="row">
114119
{#snippet title()}
115120
Codegen (Claude Code)

0 commit comments

Comments
 (0)