show create on root
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE, UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE } from '../../entity.js';
|
||||
import {
|
||||
UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE,
|
||||
UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE,
|
||||
UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE,
|
||||
} from '../../entity.js';
|
||||
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const entityActions: Array<ManifestTypes> = [
|
||||
@@ -9,7 +13,11 @@ const entityActions: Array<ManifestTypes> = [
|
||||
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],
|
||||
forEntityTypes: [
|
||||
UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE,
|
||||
UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE,
|
||||
UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE,
|
||||
],
|
||||
meta: {
|
||||
icon: 'icon-add',
|
||||
label: '#actions_createblueprint',
|
||||
|
||||
Reference in New Issue
Block a user