Skip to content

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

Change delete environment icon.

天舟b765431b4f1d
diff --git a/frontend/src/components/EnvironmentForm.vue b/frontend/src/components/EnvironmentForm.vue
index 7982ae2979..5d9af31ad2 100644
--- a/frontend/src/components/EnvironmentForm.vue
+++ b/frontend/src/components/EnvironmentForm.vue
@@ -36,16 +36,14 @@
</button>
</div>
<!-- Update button group -->
- <div v-else class="flex justify-between pt-5">
+ <div v-else class="flex justify-between items-center pt-5">
<div>
- <button
- v-show="allowDelete"
- type="button"
- class="btn-danger py-2 px-4"
- @click.prevent="$emit('delete')"
- >
- Delete
- </button>
+ <BBButtonTrash
+ v-if="allowDelete"
+ :buttonText="'Delete this environment'"
+ :requireConfirm="false"
+ @confirm="$emit('delete')"
+ />
</div>
<div>
<button
diff --git a/frontend/src/views/EnvironmentDetail.vue b/frontend/src/views/EnvironmentDetail.vue
index a65cfc6fe7..67cf636f97 100644
--- a/frontend/src/views/EnvironmentDetail.vue
+++ b/frontend/src/views/EnvironmentDetail.vue
@@ -11,6 +11,7 @@
:style="'CRITICAL'"
:okText="'Delete'"
:title="'Delete environment \'' + state.environment.name + '\' ?'"
+ :description="'You cannot undo this action.'"
@ok="
() => {
state.showDeleteModal = false;