Skip to content

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

Always allow changing environment name when creating the environment

天舟e72e67ea6bda
diff --git a/frontend/src/components/EnvironmentForm.vue b/frontend/src/components/EnvironmentForm.vue
index 9b241c229e..2a09f6161c 100644
--- a/frontend/src/components/EnvironmentForm.vue
+++ b/frontend/src/components/EnvironmentForm.vue
@@ -136,8 +136,9 @@ export default {
const allowEdit = computed(() => {
return (
- (state.environment as Environment).rowStatus == "NORMAL" &&
- isDBAOrOwner(currentUser.value.role)
+ props.create ||
+ ((state.environment as Environment).rowStatus == "NORMAL" &&
+ isDBAOrOwner(currentUser.value.role))
);
});