File tree 1 file changed +8
-2
lines changed
app/code/Magento/Ui/view/base/web/js/grid 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,20 @@ define([
38
38
* Recursive initializes observable actions.
39
39
*
40
40
* @param {Array } actions - Action objects.
41
+ * @param {String } [prefix] - An optional string that will be prepended
42
+ * to the "type" field of all child actions.
41
43
* @returns {Massactions } Chainable.
42
44
*/
43
- recursiveObserveActions : function ( actions ) {
45
+ recursiveObserveActions : function ( actions , prefix ) {
44
46
_ . each ( actions , function ( action ) {
47
+ if ( prefix ) {
48
+ action . type = prefix + '.' + action . type ;
49
+ }
50
+
45
51
if ( action . actions ) {
46
52
action . visible = ko . observable ( false ) ;
47
53
action . parent = actions ;
48
- this . recursiveObserveActions ( action . actions ) ;
54
+ this . recursiveObserveActions ( action . actions , action . type ) ;
49
55
}
50
56
} , this ) ;
51
57
You can’t perform that action at this time.
0 commit comments