Skip to content

Commit 252c48b

Browse files
Copilotalexr00
andcommitted
Refine copy button to only show for PRs and use generic title
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 9db918d commit 252c48b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

webviews/components/header.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,11 @@ function ButtonGroup({ isCurrentlyCheckedOut, isIssue, repositoryDefaultBranch,
131131
return (
132132
<div className="button-group">
133133
<CheckoutButton {...{ isCurrentlyCheckedOut, isIssue, repositoryDefaultBranch, owner, repo, number }} />
134-
<button title="Copy pull request link" onClick={copyPrLink} className="secondary">
135-
{copyIcon}
136-
</button>
134+
{!isIssue ? (
135+
<button title="Copy link" onClick={copyPrLink} className="secondary">
136+
{copyIcon}
137+
</button>
138+
) : null}
137139
<button title="Refresh with the latest data from GitHub" onClick={refresh} className="secondary">
138140
Refresh
139141
</button>

0 commit comments

Comments
 (0)