20 lines
410 B
TypeScript
20 lines
410 B
TypeScript
|
export const updatedBy = {
|
||
|
options: () => ({
|
||
|
type: 'belongsTo',
|
||
|
target: 'users',
|
||
|
foreignKey: 'updatedById',
|
||
|
uiSchema: {
|
||
|
type: 'object',
|
||
|
title: '{{t("Last updated by")}}',
|
||
|
'x-component': 'AssociationField',
|
||
|
'x-component-props': {
|
||
|
fieldNames: {
|
||
|
value: 'id',
|
||
|
label: 'nickname',
|
||
|
},
|
||
|
},
|
||
|
'x-read-pretty': true,
|
||
|
},
|
||
|
}),
|
||
|
};
|