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: adjust default arguments of confirm dialog (#6165)
Liu Ji466ecb7a95b2
diff --git a/frontend/src/components/Issue/IssueTaskStatementPanel.vue b/frontend/src/components/Issue/IssueTaskStatementPanel.vueindex 5ff0965e72..05082052db 100644--- a/frontend/src/components/Issue/IssueTaskStatementPanel.vue+++ b/frontend/src/components/Issue/IssueTaskStatementPanel.vue@@ -503,6 +503,10 @@ const handleUploadFile = async (event: Event, tick: (p: number) => void) => {positiveText: t("common.confirm"),negativeText: t("common.cancel"),title: t("issue.override-current-statement"),+ autoFocus: false,+ closable: false,+ maskClosable: false,+ closeOnEsc: false,onNegativeClick: () => {state.isUploadingFile = false;reject();diff --git a/frontend/src/components/Project/ProjectSetting/ProjectMemberTable/ProjectMemberRolePanel.vue b/frontend/src/components/Project/ProjectSetting/ProjectMemberTable/ProjectMemberRolePanel.vueindex 0f9ccb08cc..a0a8d2ff8f 100644--- a/frontend/src/components/Project/ProjectSetting/ProjectMemberTable/ProjectMemberRolePanel.vue+++ b/frontend/src/components/Project/ProjectSetting/ProjectMemberTable/ProjectMemberRolePanel.vue@@ -226,6 +226,7 @@ const handleDeleteRole = (role: string) => {content: t("common.cannot-undo-this-action"),positiveText: t("common.revoke"),negativeText: t("common.cancel"),+ autoFocus: false,closable: false,maskClosable: false,closeOnEsc: false,@@ -275,6 +276,7 @@ const handleDeleteCondition = async (condition: FormattedCondition) => {content: t("common.cannot-undo-this-action"),positiveText: t("common.revoke"),negativeText: t("common.cancel"),+ autoFocus: false,closable: false,maskClosable: false,closeOnEsc: false,diff --git a/frontend/src/components/ProjectDeploymentConfigPanel.vue b/frontend/src/components/ProjectDeploymentConfigPanel.vueindex 63b016d85a..1bcd2cb369 100644--- a/frontend/src/components/ProjectDeploymentConfigPanel.vue+++ b/frontend/src/components/ProjectDeploymentConfigPanel.vue@@ -266,6 +266,7 @@ const revertDeploymentConfig = () => {positiveText: t("common.confirm"),negativeText: t("common.cancel"),title: t("deployment-config.confirm-to-revert"),+ autoFocus: false,closable: false,maskClosable: false,closeOnEsc: false,diff --git a/frontend/src/views/SheetDashboard.vue b/frontend/src/views/SheetDashboard.vueindex 3c1b48d6bc..cc5dbcc790 100644--- a/frontend/src/views/SheetDashboard.vue+++ b/frontend/src/views/SheetDashboard.vue@@ -254,6 +254,10 @@ const handleSyncSheetFromVCS = () => {const dialogInstance = dialog.create({title: t("sheet.hint-tips.confirm-to-sync-sheet"),type: "info",+ autoFocus: false,+ closable: false,+ maskClosable: false,+ closeOnEsc: false,async onPositiveClick() {dialogInstance.closable = false;dialogInstance.loading = true;@@ -263,7 +267,6 @@ const handleSyncSheetFromVCS = () => {},positiveText: t("common.confirm"),showIcon: true,- maskClosable: false,});};</script>diff --git a/frontend/src/views/SyncDatabaseSchema/index.vue b/frontend/src/views/SyncDatabaseSchema/index.vueindex 0099588f05..24f462f49e 100644--- a/frontend/src/views/SyncDatabaseSchema/index.vue+++ b/frontend/src/views/SyncDatabaseSchema/index.vue@@ -304,6 +304,7 @@ const tryChangeStep = async (positiveText: t("common.confirm"),negativeText: t("common.cancel"),title: t("deployment-config.confirm-to-revert"),+ autoFocus: false,closable: false,maskClosable: false,closeOnEsc: false,diff --git a/frontend/src/views/sql-editor/Sheet/SheetTable/Dropdown.vue b/frontend/src/views/sql-editor/Sheet/SheetTable/Dropdown.vueindex 23f5aeabc8..4bd9fcec69 100644--- a/frontend/src/views/sql-editor/Sheet/SheetTable/Dropdown.vue+++ b/frontend/src/views/sql-editor/Sheet/SheetTable/Dropdown.vue@@ -81,6 +81,10 @@ const handleAction = async (key: string) => {const dialogInstance = dialog.create({title: t("sheet.hint-tips.confirm-to-delete-this-sheet"),type: "info",+ autoFocus: false,+ closable: false,+ maskClosable: false,+ closeOnEsc: false,async onPositiveClick() {await sheetStore.deleteSheetById(sheet.id);dialogInstance.destroy();@@ -109,6 +113,10 @@ const handleAction = async (key: string) => {const dialogInstance = dialog.create({title: t("sheet.hint-tips.confirm-to-duplicate-sheet"),type: "info",+ autoFocus: false,+ closable: false,+ maskClosable: false,+ closeOnEsc: false,async onPositiveClick() {const sheetCreate: SheetCreate = {projectId: sheet.projectId,diff --git a/frontend/src/views/sql-editor/TabList/TabList.vue b/frontend/src/views/sql-editor/TabList/TabList.vueindex 77f580411a..994fdd5ed6 100644--- a/frontend/src/views/sql-editor/TabList/TabList.vue+++ b/frontend/src/views/sql-editor/TabList/TabList.vue@@ -87,6 +87,10 @@ const handleRemoveTab = async (tab: TabInfo, index: number) => {title: t("sql-editor.hint-tips.confirm-to-close-unsaved-sheet.title"),content: t("sql-editor.hint-tips.confirm-to-close-unsaved-sheet.content"),type: "info",+ autoFocus: false,+ closable: false,+ maskClosable: false,+ closeOnEsc: false,onPositiveClick() {remove(index);$dialog.destroy();