We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15ea8fd commit d6407a2Copy full SHA for d6407a2
app/code/Magento/Ui/view/base/web/js/grid/massactions.js
@@ -26,7 +26,8 @@ define([
26
noItemsMsg: $t('You haven\'t selected any items!'),
27
modules: {
28
selections: '${ $.selectProvider }'
29
- }
+ },
30
+ clickedOnce: false,
31
},
32
33
/**
@@ -48,6 +49,10 @@ define([
48
49
* @returns {Massactions} Chainable.
50
*/
51
applyAction: function (actionIndex) {
52
+ if (this.clickedOnce) {
53
+ return this;
54
+ }
55
+
56
var data = this.getSelections(),
57
action,
58
callback;
@@ -66,6 +71,8 @@ define([
66
71
action.confirm ?
67
72
this._confirm(action, callback) :
68
73
callback();
74
75
+ this.clickedOnce = true;
69
76
70
77
return this;
78
0 commit comments