Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: schema template issues (#8135)
ecmadao49ee3de6d605
diff --git a/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vue b/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vueindex 2f7a8173c4..6c44fe9c60 100644--- a/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vue+++ b/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vue@@ -3,6 +3,7 @@class="min-w-[calc(100%-10rem)] max-w-full":show="true":auto-focus="false"+ :trap-focus="false":close-on-esc="true":native-scrollbar="true"resizablediff --git a/frontend/src/components/SchemaDesigner/Panels/TableEditor.vue b/frontend/src/components/SchemaDesigner/Panels/TableEditor.vueindex 43f9e4e56b..5cad0e27bc 100644--- a/frontend/src/components/SchemaDesigner/Panels/TableEditor.vue+++ b/frontend/src/components/SchemaDesigner/Panels/TableEditor.vue@@ -252,7 +252,11 @@><DrawerContent :title="$t('schema-template.field-template.self')"><div class="w-[calc(100vw-36rem)] min-w-[64rem] max-w-[calc(100vw-8rem)]">- <FieldTemplates :engine="engine" @apply="handleApplyColumnTemplate" />+ <FieldTemplates+ :engine="engine"+ :readonly="true"+ @apply="handleApplyColumnTemplate"+ /></div></DrawerContent></Drawer>diff --git a/frontend/src/components/SchemaEditor/Panels/TableEditor.vue b/frontend/src/components/SchemaEditor/Panels/TableEditor.vueindex ba3bae286b..c02085d9eb 100644--- a/frontend/src/components/SchemaEditor/Panels/TableEditor.vue+++ b/frontend/src/components/SchemaEditor/Panels/TableEditor.vue@@ -287,6 +287,7 @@<DrawerContent :title="$t('schema-template.field-template.self')"><div class="w-[calc(100vw-36rem)] min-w-[64rem] max-w-[calc(100vw-8rem)]"><FieldTemplates+ :readonly="true":engine="databaseEngine"@apply="handleApplyColumnTemplate"/>diff --git a/frontend/src/views/SchemaTemplate/FieldTemplates.vue b/frontend/src/views/SchemaTemplate/FieldTemplates.vueindex 1a0f721ae2..a881418717 100644--- a/frontend/src/views/SchemaTemplate/FieldTemplates.vue+++ b/frontend/src/views/SchemaTemplate/FieldTemplates.vue@@ -4,7 +4,7 @@feature="bb.feature.schema-template"custom-class="my-4"/>- <div class="space-y-4">+ <div v-if="!readonly" class="space-y-4"><div class="flex items-center justify-between gap-x-6"><div class="flex-1 textinfolabel">{{ $t("schema-template.field-template.description") }}@@ -44,14 +44,14 @@</template><BBTableSearchref="searchField"- class="ml-auto"+ class="ml-auto w-72":placeholder="$t('schema-template.search-by-name-or-comment')"@change-text="(val: string) => state.searchText = val"/></div><FieldTemplateView:engine="engine"- :readonly="!hasPermission"+ :readonly="!hasPermission || readonly":template-list="filteredTemplateList"@view="editSchemaTemplate"@apply="(template: SchemaTemplateSetting_FieldTemplate) => $emit('apply', template)"@@ -93,6 +93,7 @@ interface LocalState {const props = defineProps<{engine?: Engine;+ readonly?: boolean;showEngineFilter?: boolean;}>();