Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: improve field template form (#8131)
Tianzhou (天舟)c38d6c18133c
diff --git a/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue b/frontend/src/components/SchemaTemplate/FieldTemplateForm.vueindex 2fd92f3418..d40cc66af9 100644--- a/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue+++ b/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue@@ -93,25 +93,35 @@<label for="column-name" class="textlabel">{{ $t("schema-template.classification.self") }}</label>- <div class="flex items-center gap-x-2">+ <div class="flex items-center gap-x-2 mt-1"><ClassificationLevelBadge:classification="state.column?.classification":classification-config="classificationConfig"/><div class="flex">- <button- v-if="state.column?.classification"- class="w-6 h-6 p-1 hover:bg-control-bg-hover rounded cursor-pointer disabled:cursor-not-allowed disabled:hover:bg-white disabled:text-gray-400"- @click.prevent="state.column!.classification = ''"- >- <heroicons-outline:x class="w-4 h-4" />- </button>- <button- class="w-6 h-6 p-1 hover:bg-control-bg-hover rounded cursor-pointer disabled:cursor-not-allowed disabled:hover:bg-white disabled:text-gray-400"- @click.prevent="state.showClassificationDrawer = true"- >- <heroicons-outline:pencil class="w-4 h-4" />- </button>+ <template v-if="allowEdit">+ <button+ v-if="state.column?.classification"+ class="w-6 h-6 p-1 hover:bg-control-bg-hover rounded cursor-pointer disabled:cursor-not-allowed disabled:hover:bg-white disabled:text-gray-400"+ @click.prevent="state.column!.classification = ''"+ >+ <heroicons-outline:x class="w-4 h-4" />+ </button>+ <button+ class="w-6 h-6 p-1 hover:bg-control-bg-hover rounded cursor-pointer disabled:cursor-not-allowed disabled:hover:bg-white disabled:text-gray-400"+ @click.prevent="state.showClassificationDrawer = true"+ >+ <heroicons-outline:pencil class="w-4 h-4" />+ </button>+ </template>+ <template v-else>+ <input+ name="classification"+ type="text"+ class="textfield w-full"+ :disabled="true"+ />+ </template></div></div></div>diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex a5b0f19b07..3f38a5d3d0 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2842,13 +2842,13 @@"category-desc": "Select an existed category or create a new one","unclassified": "Unclassified","column-name": "Column name",- "column-type": "Column Type",+ "column-type": "Column type","default-value": "Default value","comment": "Comment","nullable": "Nullable"},"classification": {- "self": "Data Classification",+ "self": "Data classification","select": "Select classification","search": "Search classification"}