Skip to content

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

Gray the textfield css text class if disabled

天舟3e8c1aca99e0
diff --git a/frontend/src/assets/css/tailwind.css b/frontend/src/assets/css/tailwind.css
index 051a4d6bfb..2942401c56 100644
--- a/frontend/src/assets/css/tailwind.css
+++ b/frontend/src/assets/css/tailwind.css
@@ -103,7 +103,7 @@
}
.textfield {
- @apply text-main focus:ring-control focus:border-control sm:text-sm border-control-border rounded-md;
+ @apply text-main disabled:text-control focus:ring-control focus:border-control sm:text-sm border-control-border rounded-md;
}
.textarea {
diff --git a/frontend/src/views/DatabaseNew.vue b/frontend/src/views/DatabaseNew.vue
index b00a2d1f86..3ffbb1bf3a 100644
--- a/frontend/src/views/DatabaseNew.vue
+++ b/frontend/src/views/DatabaseNew.vue
@@ -296,6 +296,8 @@ export default {
);
});
+ // If it's from database request task, we disallow changing the preset field.
+ // This is to prevent accidentally changing the requested field.
const allowEditEnvironment = computed(() => {
return (
state.fromTaskType != "bytebase.database.request" ||