|
|
@ -53,8 +53,14 @@ onMounted(async () => { |
|
|
|
|
|
|
|
|
|
|
|
const tablesFilteredWithConfig = computed(() => |
|
|
|
const tablesFilteredWithConfig = computed(() => |
|
|
|
tables.value |
|
|
|
tables.value |
|
|
|
.filter((table) => config.value.showMMTables || (!config.value.showMMTables && !table.mm)) |
|
|
|
.filter( |
|
|
|
.filter((table) => (!config.value.showViews && table.type !== 'view') || config.value.showViews), |
|
|
|
(t) => |
|
|
|
|
|
|
|
config.value.showMMTables || |
|
|
|
|
|
|
|
(!config.value.showMMTables && !t.mm) || |
|
|
|
|
|
|
|
// Show mm table if its the selected table |
|
|
|
|
|
|
|
t.id === table?.id, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
.filter((t) => (!config.value.showViews && t.type !== 'view') || config.value.showViews), |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
watch( |
|
|
|