File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
app/code/Magento/PageBuilderAdminAnalytics/view/adminhtml/web/js/page-builder Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -16,33 +16,32 @@ define(['underscore'], function (_) {
16
16
*/
17
17
18
18
build : function ( name , args ) {
19
- var arrayName = name . split ( ':' ) ,
20
- action = '' ,
19
+ var action = '' ,
21
20
eventAttributes = { } ,
22
21
event ;
23
22
24
23
if ( _ . isUndefined ( args ) ) {
25
24
return ;
26
25
}
27
26
28
- switch ( arrayName [ arrayName . length - 1 ] ) {
29
- case 'duplicateAfter' :
27
+ switch ( name ) {
28
+ case 'contentType: duplicateAfter' :
30
29
action = 'duplicate' ;
31
30
break ;
32
31
33
- case 'removeAfter' :
32
+ case 'contentType: removeAfter' :
34
33
action = 'remove' ;
35
34
break ;
36
35
37
- case 'createAfter' :
36
+ case 'contentType: createAfter' :
38
37
action = 'create' ;
39
38
break ;
40
39
41
- case 'editBefore' :
40
+ case 'contentType: editBefore' :
42
41
action = 'edit' ;
43
42
break ;
44
43
45
- case 'visibilityAfter' :
44
+ case 'contentType: visibilityAfter' :
46
45
action = args . visibility ? 'show' : 'hide' ;
47
46
break ;
48
47
You can’t perform that action at this time.
0 commit comments