Browse Source

fix: retain user field icon for system user fields

pull/7373/head
mertmit 11 months ago
parent
commit
d8cd2ecfd5
  1. 2
      packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts
  2. 4
      packages/nc-gui/utils/columnUtils.ts
  3. 2
      packages/nc-gui/utils/iconUtils.ts

2
packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts

@ -67,7 +67,7 @@ const renderIcon = (column: ColumnType, relationColumn?: ColumnType) => {
return { icon: iconMap.datetime, color: 'text-grey' }
case UITypes.CreatedBy:
case UITypes.LastModifiedBy:
return { icon: iconMap.phUserGear, color: 'text-grey' }
return { icon: iconMap.phUser, color: 'text-grey' }
}
return { icon: iconMap.generic, color: 'text-grey' }

4
packages/nc-gui/utils/columnUtils.ts

@ -148,11 +148,11 @@ const uiTypes = [
},
{
name: UITypes.CreatedBy,
icon: iconMap.phUserGear,
icon: iconMap.phUser,
},
{
name: UITypes.LastModifiedBy,
icon: iconMap.phUserGear,
icon: iconMap.phUser,
},
]

2
packages/nc-gui/utils/iconUtils.ts

@ -76,7 +76,6 @@ import FileImageIcon from '~icons/nc-icons/file-image'
import PhUsers from '~icons/ph/users'
import PhUser from '~icons/ph/user'
import PhUserGear from '~icons/ph/user-gear'
// Roles
import SuperAdmin from '~icons/nc-icons/super-admin'
@ -328,7 +327,6 @@ export const iconMap = {
accountCircle: h('span', { class: 'material-symbols' }, 'account_circle'),
phUser: PhUser,
phUsers: PhUsers,
phUserGear: PhUserGear,
users: NcUsers,
cloudDownload: h('span', { class: 'material-symbols' }, 'cloud_download'),
download: MsDownloadRounded,

Loading…
Cancel
Save