Skip to content

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

Support optional action button for BBAttention

天舟bc790d8ac5ca
diff --git a/frontend/src/bbkit/BBAttention.vue b/frontend/src/bbkit/BBAttention.vue
index 0422e2fab0..6c296b47d1 100644
--- a/frontend/src/bbkit/BBAttention.vue
+++ b/frontend/src/bbkit/BBAttention.vue
@@ -26,13 +26,22 @@
</div>
</div>
</div>
+ <div v-if="actionText != ''" class="flex items-center justify-end">
+ <button
+ type="button"
+ class="btn-primary"
+ @click.prevent="$emit('click-action')"
+ >
+ {{ actionText }}
+ </button>
+ </div>
</div>
</template>
<script lang="ts">
export default {
name: "BBAttention",
- emits: ["toggle"],
+ emits: ["click-action"],
props: {
title: {
default: "Attention needed",
@@ -42,6 +51,10 @@ export default {
default: "",
type: String,
},
+ actionText: {
+ default: "",
+ type: String,
+ },
},
setup(props, ctx) {},
};