Skip to content

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

Allow BBButtonTrash to accept a button text

天舟e1bcc569b851
diff --git a/frontend/src/bbkit/BBButtonTrash.vue b/frontend/src/bbkit/BBButtonTrash.vue
index 8ea71f3cfb..45742d92e2 100644
--- a/frontend/src/bbkit/BBButtonTrash.vue
+++ b/frontend/src/bbkit/BBButtonTrash.vue
@@ -1,6 +1,6 @@
<template>
<button
- class="btn-icon"
+ class="btn-icon text-sm"
@click.prevent="
() => {
if (requireConfirm) {
@@ -25,6 +25,7 @@
d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
></path>
</svg>
+ <span class="ml-1">{{ buttonText }}</span>
</button>
<BBAlert
v-if="state.showDeleteModal"
@@ -50,6 +51,10 @@ export default {
name: "BBButtonTrash",
emits: ["confirm"],
props: {
+ buttonText: {
+ default: "",
+ type: String,
+ },
requireConfirm: {
default: false,
type: Boolean,