From fed12471c77a0d88bd63d5a1bab8ad3cc45186a5 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 4 Jan 2024 13:19:19 +0000 Subject: [PATCH] feat: icon and color(created/updated time) --- .../nc-gui/components/smartsheet/header/VirtualCellIcon.ts | 3 +++ packages/nocodb/src/services/columns.service.ts | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts b/packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts index e7e71286c4..cfa9f45d6b 100644 --- a/packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts +++ b/packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts @@ -62,6 +62,9 @@ const renderIcon = (column: ColumnType, relationColumn?: ColumnType) => { return { icon: iconMap.rollup, color: 'text-grey' } case UITypes.Count: return { icon: CountIcon, color: 'text-grey' } + case UITypes.CreateTime: + case UITypes.LastModifiedTime: + return { icon: iconMap.datetime, color: 'text-grey' } } return { icon: iconMap.generic, color: 'text-grey' } diff --git a/packages/nocodb/src/services/columns.service.ts b/packages/nocodb/src/services/columns.service.ts index 9453dd257b..7836078e44 100644 --- a/packages/nocodb/src/services/columns.service.ts +++ b/packages/nocodb/src/services/columns.service.ts @@ -1716,7 +1716,6 @@ export class ColumnsService { c.column_name === (c.uidt === UITypes.CreateTime ? 'created_at' : 'updated_at'), ); - if (!dbColumn) { // create column in db @@ -1736,10 +1735,6 @@ export class ColumnsService { }, ], }; - - const sqlClient = await reuseOrSave('sqlClient', reuse, async () => - NcConnectionMgrv2.getSqlClient(source), - ); const sqlMgr = await reuseOrSave('sqlMgr', reuse, async () => ProjectMgrv2.getSqlMgr({ id: source.base_id }), );