Browse Source

chore: include ID & Foreign Key

pull/2160/head
Wing-Kam Wong 3 years ago
parent
commit
b8c9f987c9
  1. 18
      packages/nc-gui/components/project/spreadsheet/helpers/uiTypes.js

18
packages/nc-gui/components/project/spreadsheet/helpers/uiTypes.js

@ -151,10 +151,20 @@ const uiTypes = [
] ]
const getUIDTIcon = (uidt) => { const getUIDTIcon = (uidt) => {
return ([...uiTypes, { return ([...uiTypes,
name: 'CreateTime', {
icon: 'mdi-calendar-clock' name: 'CreateTime',
}].find(t => t.name === uidt) || {}).icon icon: 'mdi-calendar-clock'
},
{
name: 'ID',
icon: 'mdi-identifier'
},
{
name: 'ForeignKey',
icon: 'mdi-link-variant'
}
].find(t => t.name === uidt) || {}).icon
} }
export { export {

Loading…
Cancel
Save