mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-23 20:54:50 +03:00
Update StackingSeriesHeaderContextMenu.svelte (#5436)
This commit is contained in:
parent
1bca738991
commit
fdbf545179
@ -5,6 +5,7 @@
|
|||||||
import ContextMenuItem from '$lib/components/contextmenu/ContextMenuItem.svelte';
|
import ContextMenuItem from '$lib/components/contextmenu/ContextMenuItem.svelte';
|
||||||
import ContextMenuSection from '$lib/components/contextmenu/ContextMenuSection.svelte';
|
import ContextMenuSection from '$lib/components/contextmenu/ContextMenuSection.svelte';
|
||||||
import { projectAiGenEnabled } from '$lib/config/config';
|
import { projectAiGenEnabled } from '$lib/config/config';
|
||||||
|
import { copyToClipboard } from '$lib/utils/clipboard';
|
||||||
import { openExternalUrl } from '$lib/utils/url';
|
import { openExternalUrl } from '$lib/utils/url';
|
||||||
import { BranchController } from '$lib/vbranches/branchController';
|
import { BranchController } from '$lib/vbranches/branchController';
|
||||||
import { VirtualBranch, type CommitStatus } from '$lib/vbranches/types';
|
import { VirtualBranch, type CommitStatus } from '$lib/vbranches/types';
|
||||||
@ -119,6 +120,13 @@
|
|||||||
contextMenuEl?.close();
|
contextMenuEl?.close();
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<ContextMenuItem
|
||||||
|
label="Copy PR link"
|
||||||
|
onclick={() => {
|
||||||
|
copyToClipboard(prUrl);
|
||||||
|
contextMenuEl?.close();
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<ContextMenuItem
|
<ContextMenuItem
|
||||||
label="Show PR details"
|
label="Show PR details"
|
||||||
onclick={() => {
|
onclick={() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user