Skip to content

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

feat: release guard for rollback button (#3550)

Liu Ji9e12c504fd72
diff --git a/frontend/src/components/Issue/IssueRollbackButton.vue b/frontend/src/components/Issue/IssueRollbackButton.vue
index f2cd3544bb..cc4925bb66 100644
--- a/frontend/src/components/Issue/IssueRollbackButton.vue
+++ b/frontend/src/components/Issue/IssueRollbackButton.vue
@@ -33,6 +33,7 @@ import {
buildIssueLinkWithTask,
hasProjectPermission,
hasWorkspacePermission,
+ isDev,
} from "@/utils";
enum ButtonState {
@@ -58,6 +59,8 @@ const currentUser = useCurrentUser();
const { issue, project, create, selectedTask } = useIssueLogic();
const showRollbackButton = computed(() => {
+ if (!isDev()) return false;
+
if (create.value) return false;
const issueEntity = issue.value as Issue;