Tweaks
I couldn't get the `item.name` to display.
This commit is contained in:
@@ -7,6 +7,7 @@ const entityActions: Array<ManifestTypes> = [
|
||||
kind: 'default',
|
||||
alias: 'Umb.EntityAction.DocumentBlueprint.Create',
|
||||
name: 'Document Blueprint Options Create Entity Action',
|
||||
weight: 1200,
|
||||
api: () => import('./create.action.js'),
|
||||
forEntityTypes: [UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE, UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE],
|
||||
meta: {
|
||||
@@ -21,7 +22,7 @@ const manifestModals: Array<ManifestTypes> = [
|
||||
type: 'modal',
|
||||
alias: 'Umb.Modal.DocumentBlueprintOptionsCreate',
|
||||
name: 'Document Blueprint Options Create Modal',
|
||||
js: () => import('./modal/document-blueprint-options-create-modal.element.js'),
|
||||
element: () => import('./modal/document-blueprint-options-create-modal.element.js'),
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ const mapper = (item: DocumentBlueprintTreeItemResponseModel): UmbDocumentBluepr
|
||||
return {
|
||||
unique: item.id,
|
||||
parentUnique: item.parent?.id || null,
|
||||
name: item.name,
|
||||
name: (item as any).variants?.[0].name ?? item.name,
|
||||
entityType: UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE,
|
||||
isFolder: false,
|
||||
hasChildren: item.hasChildren,
|
||||
|
||||
Reference in New Issue
Block a user