Skip to content

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

No need to show empty password checkbox in create instance form since user can leave the password field empty and create the instance.

天舟11fbec02146a
diff --git a/frontend/src/components/InstanceForm.vue b/frontend/src/components/InstanceForm.vue
index ab91f4009a..639f07d3a3 100644
--- a/frontend/src/components/InstanceForm.vue
+++ b/frontend/src/components/InstanceForm.vue
@@ -313,7 +313,10 @@ input[type="number"] {
<div class="sm:col-span-1 sm:col-start-1">
<div class="flex flex-row items-center space-x-2">
<label for="password" class="textlabel block">Password</label>
+ <!-- In create mode, user can leave the password field empty and create the instance,
+ so there is no need to show the checkbox. -->
<BBCheckbox
+ v-if="!create"
:title="'Empty'"
:value="state.useEmptyPassword"
@toggle="