This repository was archived by the owner on Dec 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
packages/nc-gui/components
tests/playwright/tests/db/features Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -554,7 +554,7 @@ const isEditBaseModalOpen = computed({
554
554
/>
555
555
<GeneralModal v-model:visible =" isErdModalOpen" size =" large" >
556
556
<div class =" h-[80vh]" >
557
- <LazyDashboardSettingsErd :source-id =" activeBaseId" />
557
+ <LazyDashboardSettingsErd :source-id =" activeBaseId" :show-all-columns = " false " />
558
558
</div >
559
559
</GeneralModal >
560
560
<GeneralModal v-model:visible =" isMetaDataModal" size =" medium" >
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
const props = defineProps <{
3
3
sourceId: string
4
+ showAllColumns? : boolean
4
5
}>()
5
6
</script >
6
7
7
8
<template >
8
9
<div class =" w-full h-full !p-0" >
9
- <ErdView :source-id =" props.sourceId" />
10
+ <ErdView :source-id =" props.sourceId" :show-all-columns = " props.showAllColumns " />
10
11
</div >
11
12
</template >
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ onMounted(async () => {
46
46
<template >
47
47
<GeneralModal v-model:visible =" isOpen" size =" large" >
48
48
<div class =" h-[80vh]" >
49
- <ErdView v-if =" !isLoading" :source-id =" activeSourceId" :base-id =" baseId" />
49
+ <ErdView v-if =" !isLoading" :source-id =" activeSourceId" :base-id =" baseId" :show-all-columns = " false " />
50
50
</div >
51
51
</GeneralModal >
52
52
</template >
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const indicator = h(LoadingOutlined, {
24
24
</div >
25
25
26
26
<Suspense v-else >
27
- <LazyErdView :table =" activeTable" :source-id =" activeTable?.source_id" : show-all-columns= " false " />
27
+ <LazyErdView :table =" activeTable" :source-id =" activeTable?.source_id" show-all-columns />
28
28
<template #fallback >
29
29
<div class =" h-full w-full flex flex-col justify-center items-center mt-28" >
30
30
<a-spin size =" large" :indicator =" indicator" />
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ test.describe('Erd', () => {
61
61
62
62
const erd = dashboard . details . relations ;
63
63
64
+ await erd . clickShowColumnNames ( ) ;
65
+
64
66
if ( isPg ( context ) ) {
65
67
await erd . verifyNodesCount ( sakilaTables . length ) ;
66
68
await erd . verifyEdgesCount ( {
@@ -181,7 +183,6 @@ test.describe('Erd', () => {
181
183
await openErdOfATable ( 'Country' ) ;
182
184
const erd = dashboard . details . relations ;
183
185
184
- await erd . clickShowColumnNames ( ) ;
185
186
// Verify tables with default config
186
187
await erd . verifyColumns ( {
187
188
tableName : `country` ,
@@ -224,7 +225,6 @@ test.describe('Erd', () => {
224
225
// Verify
225
226
await dashboard . grid . topbar . btn_details . click ( ) ;
226
227
await openErdOfATable ( 'Country' ) ;
227
- await erd . clickShowColumnNames ( ) ;
228
228
229
229
await erd . verifyNode ( {
230
230
tableName : `country` ,
@@ -245,7 +245,6 @@ test.describe('Erd', () => {
245
245
// Verify
246
246
await dashboard . grid . topbar . btn_details . click ( ) ;
247
247
await openErdOfATable ( 'Country' ) ;
248
- await erd . clickShowColumnNames ( ) ;
249
248
250
249
await erd . verifyNode ( {
251
250
tableName : `country` ,
You can’t perform that action at this time.
0 commit comments