Browse Source

feat: icon and color(created/updated time)

pull/7304/head
Pranav C 12 months ago
parent
commit
fed12471c7
  1. 3
      packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts
  2. 5
      packages/nocodb/src/services/columns.service.ts

3
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' }

5
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 }),
);

Loading…
Cancel
Save