-
Notifications
You must be signed in to change notification settings - Fork 82
/
actions.yml
59 lines (59 loc) · 2.3 KB
/
actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
operations:
oro_web_catalog_edit_content_tree:
label: oro.webcatalog.button.webcatalog.edit_content_tree.label
routes: [oro_web_catalog_view]
acl_resource: oro_web_catalog_update
datagrids:
- web-catalog-grid
order: 10
button_options:
icon: fa-sitemap
actions:
- '@redirect':
route: 'oro_content_node_update_root'
route_parameters:
id: $.data.id
oro_web_catalog_delete_content_node:
extends: DELETE
acl_resource: oro_web_catalog_update
replace:
- for_all_datagrids
- for_all_entities
- preconditions
preactions:
- '@assign_value': [$.buttonTooltip, null]
- '@assign_value': [$.enabled, true]
- '@call_service_method':
conditions:
'@not_blank': $.data
parameters:
service: oro_web_catalog.content_node.deletion_resolver
method: checkOnNotDeletableContentNodeUsingTree
method_parameters: [$.data]
attribute: $.notDeletableContentNodeContext
- '@assign_value':
conditions:
'@not_blank': $.notDeletableContentNodeContext
parameters:
'@assign_value': [$.enabled, false]
- '@call_service_method':
conditions:
'@not_blank': $.notDeletableContentNodeContext
parameters:
service: oro_web_catalog.content_node.deletion_resolver
method: getDeletionWarningMessage
method_parameters: [ $.notDeletableContentNodeContext ]
attribute: $.buttonTooltip
preconditions:
'@not_blank': $.data
routes:
- 'oro_content_node_update'
- 'oro_content_node_update_root'
actions:
- '@redirect':
route: 'oro_content_node_update_root'
route_parameters:
id: $.data.webCatalog.id
frontend_options:
title: $.buttonTooltip
enabled: $.enabled