Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(frontend): byt-914 hide "Visible" col for PostgreSQL (#1897)
Liu Ji974b41575cc5
diff --git a/frontend/src/components/IndexTable.vue b/frontend/src/components/IndexTable.vueindex a6096dea15..c3cdc6064a 100644--- a/frontend/src/components/IndexTable.vue+++ b/frontend/src/components/IndexTable.vue@@ -13,7 +13,11 @@/><BBTableHeaderCell class="w-4" :title="COLUMN_LIST[1].title" /><BBTableHeaderCell class="w-4" :title="COLUMN_LIST[2].title" />- <BBTableHeaderCell class="w-4" :title="COLUMN_LIST[3].title" />+ <BBTableHeaderCell+ v-if="showVisibleColumn"+ class="w-4"+ :title="COLUMN_LIST[3].title"+ /><BBTableHeaderCell class="w-16" :title="COLUMN_LIST[4].title" /></template><template #body="{ rowData: index }">@@ -26,7 +30,7 @@<BBTableCell>{{ index.unique }}</BBTableCell>- <BBTableCell>+ <BBTableCell v-if="showVisibleColumn">{{ index.visible }}</BBTableCell><BBTableCell>@@ -39,7 +43,7 @@<script lang="ts">import { computed, defineComponent, PropType } from "vue";import { BBTableColumn, BBTableSectionDataSource } from "../bbkit/types";-import { TableIndex } from "../types";+import { Database, TableIndex } from "../types";import { useI18n } from "vue-i18n";export default defineComponent({@@ -50,9 +54,16 @@ export default defineComponent({required: true,type: Object as PropType<TableIndex[]>,},+ database: {+ required: true,+ type: Object as PropType<Database>,+ },},setup(props) {const { t } = useI18n();+ const showVisibleColumn = computed(() => {+ return props.database.instance.engine !== "POSTGRES";+ });const COLUMN_LIST: BBTableColumn[] = [{title: t("database.expression"),@@ -91,6 +102,7 @@ export default defineComponent({return {COLUMN_LIST,sectionList,+ showVisibleColumn,};},});diff --git a/frontend/src/views/TableDetail.vue b/frontend/src/views/TableDetail.vueindex b00e598981..068582f24c 100644--- a/frontend/src/views/TableDetail.vue+++ b/frontend/src/views/TableDetail.vue@@ -197,7 +197,7 @@<div class="text-lg leading-6 font-medium text-main mb-4">{{ $t("database.indexes") }}</div>- <IndexTable :index-list="table.indexList" />+ <IndexTable :index-list="table.indexList" :database="database" /></div></main></div>