Skip to content

Commit b5aac36

Browse files
committed
revert: workspace edit view
1 parent c515671 commit b5aac36

File tree

1 file changed

+23
-1
lines changed
  • src/packages/documents/document-blueprints/workspace

1 file changed

+23
-1
lines changed

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

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type {
44
ManifestTypes,
55
ManifestWorkspace,
66
ManifestWorkspaceActions,
7+
ManifestWorkspaceView,
78
} from '@umbraco-cms/backoffice/extension-registry';
89

910
export const UMB_DOCUMENT_BLUEPRINT_WORKSPACE_ALIAS = 'Umb.Workspace.DocumentBlueprint';
@@ -30,6 +31,27 @@ const rootWorkspace: ManifestWorkspace = {
3031
},
3132
};
3233

34+
const workspaceViews: Array<ManifestWorkspaceView> = [
35+
{
36+
type: 'workspaceView',
37+
kind: 'contentEditor',
38+
alias: 'Umb.WorkspaceView.DocumentBlueprint.Edit',
39+
name: 'Document Blueprint Workspace Edit View',
40+
weight: 200,
41+
meta: {
42+
label: '#general_content',
43+
pathname: 'content',
44+
icon: 'document',
45+
},
46+
conditions: [
47+
{
48+
alias: 'Umb.Condition.WorkspaceAlias',
49+
match: workspace.alias,
50+
},
51+
],
52+
},
53+
];
54+
3355
const workspaceActions: Array<ManifestWorkspaceActions> = [
3456
{
3557
type: 'workspaceAction',
@@ -52,4 +74,4 @@ const workspaceActions: Array<ManifestWorkspaceActions> = [
5274
},
5375
];
5476

55-
export const manifests: Array<ManifestTypes> = [rootWorkspace, workspace, ...workspaceActions];
77+
export const manifests: Array<ManifestTypes> = [rootWorkspace, workspace, ...workspaceViews, ...workspaceActions];

0 commit comments

Comments
 (0)