Skip to content

Commit 25a1a1e

Browse files
Copilotalexr00
andauthored
Hide "Open Changes" button on Issue pages (#7082)
* Initial plan * Fix: Hide Open Changes button on Issues pages Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent ae32ca0 commit 25a1a1e

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
@@ -108,9 +108,11 @@ function ButtonGroup({ isCurrentlyCheckedOut, canEdit, isIssue, repositoryDefaul
108108
return (
109109
<div className="button-group">
110110
<CheckoutButtons {...{ isCurrentlyCheckedOut, isIssue, repositoryDefaultBranch }} />
111-
<button title="Open Changes" onClick={openChanges} className="small-button">
112-
Open Changes
113-
</button>
111+
{!isIssue && (
112+
<button title="Open Changes" onClick={openChanges} className="small-button">
113+
Open Changes
114+
</button>
115+
)}
114116
<button title="Refresh with the latest data from GitHub" onClick={refresh} className="secondary small-button">
115117
Refresh
116118
</button>

0 commit comments

Comments
 (0)