Skip to content

Commit 3152372

Browse files
committed
fix: add a folder workspace to show the blueprint information element
1 parent 7b03b92 commit 3152372

File tree

1 file changed

+22
-2
lines changed
  • src/packages/documents/document-blueprints/workspace

1 file changed

+22
-2
lines changed

src/packages/documents/document-blueprints/workspace/manifests.ts

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE, UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE } from '../entity.js';
1+
import {
2+
UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE,
3+
UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE,
4+
UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE,
5+
} from '../entity.js';
26
import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
37
import type {
48
ManifestTypes,
@@ -30,6 +34,16 @@ const rootWorkspace: ManifestWorkspace = {
3034
},
3135
};
3236

37+
const folderWorkspace: ManifestWorkspace = {
38+
type: 'workspace',
39+
alias: 'Umb.Workspace.DocumentBlueprint.Folder',
40+
name: 'Document Blueprint Folder Workspace',
41+
element: () => import('./document-blueprint-root-workspace.element.js'),
42+
meta: {
43+
entityType: UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE,
44+
},
45+
};
46+
3347
const workspaceViews: Array<ManifestWorkspaceView> = [
3448
{
3549
type: 'workspaceView',
@@ -73,4 +87,10 @@ const workspaceActions: Array<ManifestWorkspaceActions> = [
7387
},
7488
];
7589

76-
export const manifests: Array<ManifestTypes> = [rootWorkspace, workspace, ...workspaceViews, ...workspaceActions];
90+
export const manifests: Array<ManifestTypes> = [
91+
rootWorkspace,
92+
folderWorkspace,
93+
workspace,
94+
...workspaceViews,
95+
...workspaceActions,
96+
];

0 commit comments

Comments
 (0)