File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/packages/documents/documents/entity-actions/notifications Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { UMB_DOCUMENT_ENTITY_TYPE } from '../../entity.js' ;
2
+ import { UMB_USER_PERMISSION_DOCUMENT_NOTIFICATIONS } from '../../user-permissions/constants.js' ;
2
3
import { manifests as repositoryManifests } from './repository/manifests.js' ;
3
4
import { manifests as modalManifests } from './modal/manifests.js' ;
4
5
import type { ManifestEntityAction } from '@umbraco-cms/backoffice/extension-registry' ;
6
+ import { UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS } from '@umbraco-cms/backoffice/recycle-bin' ;
5
7
6
8
const actionManifests : Array < ManifestEntityAction > = [
7
9
{
@@ -14,8 +16,17 @@ const actionManifests: Array<ManifestEntityAction> = [
14
16
forEntityTypes : [ UMB_DOCUMENT_ENTITY_TYPE ] ,
15
17
meta : {
16
18
icon : 'icon-megaphone' ,
17
- label : '#notifications_notifications ' ,
19
+ label : '#actions_notify ' ,
18
20
} ,
21
+ conditions : [
22
+ {
23
+ alias : 'Umb.Condition.UserPermission.Document' ,
24
+ allOf : [ UMB_USER_PERMISSION_DOCUMENT_NOTIFICATIONS ] ,
25
+ } ,
26
+ {
27
+ alias : UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS ,
28
+ } ,
29
+ ] ,
19
30
} ,
20
31
] ;
21
32
You can’t perform that action at this time.
0 commit comments