Fixed note schema.
This commit is contained in:
parent
25743ddc2c
commit
ced34b4a86
@ -30,13 +30,6 @@ export const Note = {
|
||||
type: 'dateTime',
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'noteType',
|
||||
label: 'Note Type',
|
||||
type: 'object',
|
||||
objectType: 'noteType',
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'parent._id',
|
||||
label: 'Parent ID',
|
||||
@ -44,7 +37,23 @@ export const Note = {
|
||||
objectType: (objectData) => {
|
||||
return objectData.parentType
|
||||
},
|
||||
showHyperlink: true
|
||||
showHyperlink: true,
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'content',
|
||||
label: 'Content',
|
||||
type: 'markdown',
|
||||
required: true,
|
||||
span: 2
|
||||
},
|
||||
{
|
||||
name: 'noteType',
|
||||
label: 'Note Type',
|
||||
type: 'object',
|
||||
objectType: 'noteType',
|
||||
showHyperlink: true,
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'noteType._id',
|
||||
@ -58,11 +67,6 @@ export const Note = {
|
||||
type: 'id',
|
||||
objectType: 'user'
|
||||
},
|
||||
{
|
||||
name: 'content',
|
||||
label: 'Content',
|
||||
type: 'markdown'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user