Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove reopen issue button for request granting issues (#6768)

boojack9a9974e017f9
diff --git a/frontend/src/components/Issue/IssueHighlightPanel.vue b/frontend/src/components/Issue/IssueHighlightPanel.vue
index f0ad0331f4..282f11f6ae 100644
--- a/frontend/src/components/Issue/IssueHighlightPanel.vue
+++ b/frontend/src/components/Issue/IssueHighlightPanel.vue
@@ -189,7 +189,7 @@ const showReviewButtonGroup = computed(() => {
/**
* Rollout / Retry
* + cancel issue (dropdown)
- * * skip all failed tasks in current stage (dropdown)
+ * + skip all failed tasks in current stage (dropdown)
*/
const showRolloutButtonGroup = computed(() => {
if (create.value) return true;
diff --git a/frontend/src/components/Issue/logic/transition.ts b/frontend/src/components/Issue/logic/transition.ts
index 86ef83fb37..9815d8aa59 100644
--- a/frontend/src/components/Issue/logic/transition.ts
+++ b/frontend/src/components/Issue/logic/transition.ts
@@ -19,6 +19,7 @@ import {
extractUserUID,
hasWorkspacePermissionV1,
isOwnerOfProjectV1,
+ isGrantRequestIssueType,
} from "@/utils";
import {
allowUserToBeAssignee,
@@ -184,6 +185,11 @@ export const calcApplicableIssueStatusTransitionList = (
if (!isIssueReviewDone(issue)) {
return;
}
+ } else if (type === "REOPEN") {
+ // Don't show the REOPEN button for request granting issues.
+ if (isGrantRequestIssueType(issue.type)) {
+ return;
+ }
}
if (isDatabaseRelatedIssueType(issue.type)) {