Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: disable switch when task done (#11801)
boojack0a661278c852
diff --git a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.ts b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.tsindex b5e1f5db23..d43ac7775c 100644--- a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.ts+++ b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.ts@@ -14,7 +14,7 @@ import {useIssueCommentStore,} from "@/store";import { Engine } from "@/types/proto/v1/common";-import { Task_Type } from "@/types/proto/v1/rollout_service";+import { Task_Status, Task_Type } from "@/types/proto/v1/rollout_service";import { extractUserResourceName, hasProjectPermissionV2 } from "@/utils";export const usePreBackupContext = () => {@@ -45,6 +45,13 @@ export const usePreBackupContext = () => {if (isCreating.value) {return true;}+ if (+ ![Task_Status.NOT_STARTED, Task_Status.PENDING].includes(+ task.value.status+ )+ ) {+ return false;+ }const user = currentUserV1.value;diff --git a/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/common.ts b/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/common.tsindex 960196943d..24e85b1243 100644--- a/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/common.ts+++ b/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/common.ts@@ -84,6 +84,13 @@ export const useRollbackContext = () => {if (rollbackUIType.value === "NONE") {return false;}+ if (+ ![Task_Status.NOT_STARTED, Task_Status.PENDING].includes(+ task.value.status+ )+ ) {+ return false;+ }if (isCreating.value) {return true;