Skip to content

Commit 832bbae

Browse files
committed
Ui module fixes:
- Update confirm message method, add number of selected records to confirm message
1 parent 827d2d4 commit 832bbae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Ui/view/base/web/js/grid/massactions.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,13 @@ define([
176176
*/
177177
_confirm: function (action, callback) {
178178
var confirmData = action.confirm;
179+
var data = this.getSelections();
180+
var total = data.total ? data.total : 0;
181+
var confirmMessage = confirmData.message + ' (' + total + ' record' + (total > 1 ? 's' : '') + ')';
179182

180183
confirm({
181184
title: confirmData.title,
182-
content: confirmData.message,
185+
content: confirmMessage,
183186
actions: {
184187
confirm: callback
185188
}

0 commit comments

Comments
 (0)