Skip to content

Commit b434301

Browse files
authored
refactor(branch header): remove extra buttons (#10178)
1 parent 079e7fe commit b434301

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

apps/desktop/src/components/BranchList.svelte

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import { URL_SERVICE } from '$lib/utils/url';
2020
import { ensureValue } from '$lib/utils/validation';
2121
import { inject } from '@gitbutler/core/context';
22-
import { copyToClipboard } from '@gitbutler/shared/clipboard';
2322
2423
import { Button, Modal, TestId } from '@gitbutler/ui';
2524
import { getForgeLogo } from '@gitbutler/ui/utils/getForgeLogo';
@@ -47,8 +46,6 @@
4746
// Component is read-only when stackId is undefined
4847
const isReadOnly = $derived(!stackId);
4948
50-
const [insertBlankCommitInBranch, commitInsertion] = stackService.insertBlankCommit;
51-
5249
let addDependentBranchModalContext = $state<AddDependentBranchModalProps>();
5350
let addDependentBranchModal = $state<AddDependentBranchModal>();
5451
@@ -194,30 +191,6 @@
194191
}}
195192
>
196193
{#snippet buttons()}
197-
<Button
198-
icon="new-empty-commit"
199-
size="tag"
200-
kind="outline"
201-
tooltip={isReadOnly ? 'Read-only mode' : 'Create empty commit'}
202-
onclick={async () => {
203-
await insertBlankCommitInBranch({
204-
projectId,
205-
stackId: ensureValue(stackId),
206-
commitId: undefined,
207-
offset: -1
208-
});
209-
}}
210-
disabled={isReadOnly || commitInsertion.current.isLoading}
211-
/>
212-
<Button
213-
icon="copy-small"
214-
size="tag"
215-
kind="outline"
216-
tooltip="Copy branch name"
217-
onclick={() => {
218-
copyToClipboard(branchName);
219-
}}
220-
/>
221194
{#if first}
222195
<Button
223196
icon="new-dep-branch"

0 commit comments

Comments
 (0)