Skip to content

Commit 55cfb26

Browse files
committed
assign condition to document content workspace view
1 parent 97edd74 commit 55cfb26

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/packages/documents/documents/workspace/manifests.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
import { UMB_DOCUMENT_ENTITY_TYPE } from '../entity.js';
2-
import {
3-
UMB_USER_PERMISSION_DOCUMENT_UNPUBLISH,
4-
UMB_USER_PERMISSION_DOCUMENT_UPDATE,
5-
UMB_USER_PERMISSION_DOCUMENT_PUBLISH,
6-
} from '../user-permissions/index.js';
71
import { UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS } from '@umbraco-cms/backoffice/recycle-bin';
82
import type {
93
ManifestWorkspaces,
@@ -12,6 +6,13 @@ import type {
126
ManifestWorkspaceView,
137
ManifestTypes,
148
} from '@umbraco-cms/backoffice/extension-registry';
9+
import { UMB_CONTENT_HAS_PROPERTIES_WORKSPACE_CONDITION } from '@umbraco-cms/backoffice/content';
10+
import {
11+
UMB_USER_PERMISSION_DOCUMENT_UNPUBLISH,
12+
UMB_USER_PERMISSION_DOCUMENT_UPDATE,
13+
UMB_USER_PERMISSION_DOCUMENT_PUBLISH,
14+
} from '../user-permissions/index.js';
15+
import { UMB_DOCUMENT_ENTITY_TYPE } from '../entity.js';
1516

1617
export const UMB_DOCUMENT_WORKSPACE_ALIAS = 'Umb.Workspace.Document';
1718

@@ -63,6 +64,9 @@ const workspaceViews: Array<ManifestWorkspaceView> = [
6364
alias: 'Umb.Condition.WorkspaceAlias',
6465
match: workspace.alias,
6566
},
67+
{
68+
alias: UMB_CONTENT_HAS_PROPERTIES_WORKSPACE_CONDITION,
69+
},
6670
],
6771
},
6872
{

0 commit comments

Comments
 (0)