Skip to content

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

chore: hide `ColumnTable` for MongoDB (#4173)

boojack4e84e84b0192
diff --git a/frontend/src/views/TableDetail.vue b/frontend/src/views/TableDetail.vue
index 0c2a7c8370..9172b8ee35 100644
--- a/frontend/src/views/TableDetail.vue
+++ b/frontend/src/views/TableDetail.vue
@@ -175,7 +175,7 @@
</div>
</div>
- <div class="mt-6 px-6">
+ <div v-if="shouldShowColumnTable" class="mt-6 px-6">
<div class="text-lg leading-6 font-medium text-main mb-4">
{{ $t("database.columns") }}
</div>
@@ -242,9 +242,15 @@ export default defineComponent({
const database = computed(() => {
return databaseStore.getDatabaseById(databaseId);
});
+ const instanceEngine = computed(() => {
+ return database.value.instance.engine;
+ });
const hasSchemaProperty = computed(
- () => database.value.instance.engine === "POSTGRES"
+ () => instanceEngine.value === "POSTGRES"
);
+ const shouldShowColumnTable = computed(() => {
+ return instanceEngine.value !== "MONGODB";
+ });
const getTableName = (tableName: string) => {
if (hasSchemaProperty.value) {
return `"${schemaName}"."${tableName}"`;
@@ -299,6 +305,7 @@ export default defineComponent({
bytesToString,
isGhostTable,
sensitiveDataList,
+ shouldShowColumnTable,
};
},
});