fix: add a folder workspace to show the blueprint information element
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE, UMB_DOCUMENT_BLUEPRINT_ROOT_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 { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestTypes,
|
||||
@@ -30,6 +34,16 @@ const rootWorkspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const folderWorkspace: ManifestWorkspace = {
|
||||
type: 'workspace',
|
||||
alias: 'Umb.Workspace.DocumentBlueprint.Folder',
|
||||
name: 'Document Blueprint Folder Workspace',
|
||||
element: () => import('./document-blueprint-root-workspace.element.js'),
|
||||
meta: {
|
||||
entityType: UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE,
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [
|
||||
{
|
||||
type: 'workspaceView',
|
||||
@@ -73,4 +87,10 @@ const workspaceActions: Array<ManifestWorkspaceActions> = [
|
||||
},
|
||||
];
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [rootWorkspace, workspace, ...workspaceViews, ...workspaceActions];
|
||||
export const manifests: Array<ManifestTypes> = [
|
||||
rootWorkspace,
|
||||
folderWorkspace,
|
||||
workspace,
|
||||
...workspaceViews,
|
||||
...workspaceActions,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user