This repository was archived by the owner on Nov 6, 2025. It is now read-only.
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 11import { UMB_DOCUMENT_ENTITY_TYPE } from '../../entity.js' ;
2+ import { UMB_USER_PERMISSION_DOCUMENT_NOTIFICATIONS } from '../../user-permissions/constants.js' ;
23import { manifests as repositoryManifests } from './repository/manifests.js' ;
34import { manifests as modalManifests } from './modal/manifests.js' ;
45import type { ManifestEntityAction } from '@umbraco-cms/backoffice/extension-registry' ;
6+ import { UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS } from '@umbraco-cms/backoffice/recycle-bin' ;
57
68const actionManifests : Array < ManifestEntityAction > = [
79 {
@@ -14,8 +16,17 @@ const actionManifests: Array<ManifestEntityAction> = [
1416 forEntityTypes : [ UMB_DOCUMENT_ENTITY_TYPE ] ,
1517 meta : {
1618 icon : 'icon-megaphone' ,
17- label : '#notifications_notifications ' ,
19+ label : '#actions_notify ' ,
1820 } ,
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+ ] ,
1930 } ,
2031] ;
2132
You can’t perform that action at this time.
0 commit comments