diff --git a/frontend/src/components/git/ForgejoIssueDetailDialog.tsx b/frontend/src/components/git/ForgejoIssueDetailDialog.tsx index df37cba..668f14f 100644 --- a/frontend/src/components/git/ForgejoIssueDetailDialog.tsx +++ b/frontend/src/components/git/ForgejoIssueDetailDialog.tsx @@ -116,6 +116,7 @@ export function ForgejoIssueDetailDialog({ const active = detail ?? issue; const body = detail?.body ?? issue.body ?? issue.body_preview ?? ""; const stateVariant = active.state === "open" ? "success" : "default"; + const showCloseIssue = canClose && active.state === "open"; const handleCloseIssueSuccess = () => { if (detail) setDetail({ ...detail, state: "closed" }); @@ -149,9 +150,9 @@ export function ForgejoIssueDetailDialog({ <> - -
-
+ +
+
{active.title} @@ -167,49 +168,49 @@ export function ForgejoIssueDetailDialog({ Updated {formatDateTime(active.forgejo_updated_at)}
-
+ {showCloseIssue ? ( - - {canClose && active.state === "open" ? ( - - ) : null} - - Open in Forgejo - - -
+ ) : null} +
+
+ + + + Open in Forgejo + +
@@ -376,9 +377,9 @@ export function ForgejoIssueDetailDialog({ -
+