Add icon, position and key on View (#4413)

* Add view key field

* Update Prefill demo, seed dev, prefill new workspace
This commit is contained in:
Charles Bochet
2024-03-11 17:00:19 +01:00
committed by GitHub
parent 5cf4047482
commit 5287b7c4ab
12 changed files with 472 additions and 43 deletions

View File

@ -41,6 +41,31 @@ export class ViewObjectMetadata extends BaseObjectMetadata {
})
type: string;
@FieldMetadata({
type: FieldMetadataType.SELECT,
label: 'Key',
description: 'View key',
options: [{ value: 'INDEX', label: 'Index', position: 0, color: 'red' }],
defaultValue: { value: 'INDEX' },
})
@IsNullable()
key: string;
@FieldMetadata({
type: FieldMetadataType.TEXT,
label: 'Icon',
description: 'View icon',
})
icon: string;
@FieldMetadata({
type: FieldMetadataType.POSITION,
label: 'Position',
description: 'View position',
})
@IsNullable()
position: number;
@FieldMetadata({
type: FieldMetadataType.BOOLEAN,
label: 'Compact View',