From 3d82925bac85714cb922fef9823b3f8b4aeb61c0 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 19 Sep 2023 10:29:09 +0000 Subject: [PATCH] fix: link modal --- packages/nc-gui/assets/nc-icons/column.svg | 3 ++ .../components/ListChildItems.vue | 28 +++++++++++++++---- .../virtual-cell/components/ListItem.vue | 2 +- .../virtual-cell/components/ListItems.vue | 16 +++++++---- 4 files changed, 38 insertions(+), 11 deletions(-) create mode 100644 packages/nc-gui/assets/nc-icons/column.svg diff --git a/packages/nc-gui/assets/nc-icons/column.svg b/packages/nc-gui/assets/nc-icons/column.svg new file mode 100644 index 0000000000..6ff642b019 --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/column.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/nc-gui/components/virtual-cell/components/ListChildItems.vue b/packages/nc-gui/components/virtual-cell/components/ListChildItems.vue index 4a6a2052ed..766df7082d 100644 --- a/packages/nc-gui/components/virtual-cell/components/ListChildItems.vue +++ b/packages/nc-gui/components/virtual-cell/components/ListChildItems.vue @@ -2,6 +2,7 @@ import { type ColumnType, isLinksOrLTAR, isSystemColumn } from 'nocodb-sdk' import type { Row } from '#imports' import InboxIcon from '~icons/nc-icons/inbox' +import ColumnIcon from '~icons/nc-icons/column' import { ColumnInj, @@ -196,10 +197,23 @@ watch(expandedFormDlg, () => { 'h-[420px]': !isForm, 'h-[250px]': isForm, }" - class="pt-1 flex flex-col items-center justify-center text-gray-500" + class="pt-1 flex flex-col gap-3 items-center justify-center text-gray-500" > -

There are no records in table

+

+ No records are linked from table + + + {{ relatedTableMeta?.title }} + +

+ +
Link more records
+
@@ -225,10 +239,14 @@ watch(expandedFormDlg, () => { />
- - Link more records + Cancel + +
Link more records
- Close
diff --git a/packages/nc-gui/components/virtual-cell/components/ListItem.vue b/packages/nc-gui/components/virtual-cell/components/ListItem.vue index f05a9bb67c..5472dea5e1 100644 --- a/packages/nc-gui/components/virtual-cell/components/ListItem.vue +++ b/packages/nc-gui/components/virtual-cell/components/ListItem.vue @@ -44,7 +44,7 @@ const attachments: Attachment[] = computed(() => { -
+
-

There are no records in table

+

+ There are no records in table + + + {{ relatedTableMeta?.title }} + +

@@ -252,7 +258,7 @@ watch(expandedFormDlg, () => { show-less-items />
- Close + Close