From b003e966304717c662d23b6632d51eb4d158ea10 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 2 Aug 2022 15:42:09 +0800 Subject: [PATCH 1/2] feat(gui-v2): add SpecificDBType to virtual --- packages/nocodb-sdk/src/lib/UITypes.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nocodb-sdk/src/lib/UITypes.ts b/packages/nocodb-sdk/src/lib/UITypes.ts index c3b315f218..c15064db0b 100644 --- a/packages/nocodb-sdk/src/lib/UITypes.ts +++ b/packages/nocodb-sdk/src/lib/UITypes.ts @@ -46,6 +46,7 @@ export function isVirtualCol( | ColumnType ) { return [ + UITypes.SpecificDBType, UITypes.LinkToAnotherRecord, UITypes.Formula, UITypes.Rollup, From 31ac5d0260e60a0a131d7d2d1ae2ed33d96627dd Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 2 Aug 2022 15:42:20 +0800 Subject: [PATCH 2/2] feat(gui-v2): render SpecificDBType icon --- .../nc-gui-v2/components/smartsheet-header/VirtualCellIcon.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nc-gui-v2/components/smartsheet-header/VirtualCellIcon.vue b/packages/nc-gui-v2/components/smartsheet-header/VirtualCellIcon.vue index 9d91c76f80..d9aadc6811 100644 --- a/packages/nc-gui-v2/components/smartsheet-header/VirtualCellIcon.vue +++ b/packages/nc-gui-v2/components/smartsheet-header/VirtualCellIcon.vue @@ -8,6 +8,7 @@ import BTIcon from '~icons/mdi/table-arrow-left' import MMIcon from '~icons/mdi/table-network' import FormulaIcon from '~icons/mdi/math-integral' import RollupIcon from '~icons/mdi/movie-roll' +import SpecificDBTypeIcon from '~icons/mdi/database-settings' const { columnMeta } = defineProps<{ columnMeta?: ColumnType }>() @@ -25,6 +26,8 @@ const icon = computed(() => { return BTIcon } break + case UITypes.SpecificDBType: + return SpecificDBTypeIcon case UITypes.Formula: return FormulaIcon case UITypes.Lookup: