Skip to content

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

Add a disable style to BBButtonConfirm

天舟fcf0ebb9dc55
diff --git a/frontend/src/bbkit/BBButtonConfirm.vue b/frontend/src/bbkit/BBButtonConfirm.vue
index b6d6d8db0d..8ced498e52 100644
--- a/frontend/src/bbkit/BBButtonConfirm.vue
+++ b/frontend/src/bbkit/BBButtonConfirm.vue
@@ -39,6 +39,14 @@
stroke-width="2"
d="M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"
></path>
+
+ <path
+ v-if="style == 'DISABLE'"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
+ ></path>
<path
v-if="style == 'EDIT'"
stroke-linecap="round"
@@ -51,7 +59,11 @@
</button>
<BBAlert
v-if="state.showModal"
- :style="style == 'DELETE' || style == 'ARCHIVE' ? 'CRITICAL' : 'INFO'"
+ :style="
+ style == 'DELETE' || style == 'ARCHIVE' || style == 'DISABLE'
+ ? 'CRITICAL'
+ : 'INFO'
+ "
:okText="okText"
:title="confirmTitle"
:description="confirmDescription"
diff --git a/frontend/src/bbkit/types.ts b/frontend/src/bbkit/types.ts
index 94ebcc98c2..14ee5be44d 100644
--- a/frontend/src/bbkit/types.ts
+++ b/frontend/src/bbkit/types.ts
@@ -1,4 +1,9 @@
-export type BBButtonConfirmStyle = "DELETE" | "ARCHIVE" | "RESTORE" | "EDIT";
+export type BBButtonConfirmStyle =
+ | "DELETE"
+ | "ARCHIVE"
+ | "RESTORE"
+ | "DISABLE"
+ | "EDIT";
export type BBTableColumn = {
title: string;