Update StackingSeriesHeaderContextMenu.svelte (#5436)

This commit is contained in:
Pavel Laptev 2024-11-05 10:44:50 +01:00 committed by GitHub
parent 1bca738991
commit fdbf545179
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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={() => {