File tree 2 files changed +6
-1
lines changed
app/code/Magento/Ui/view/base/web/js/grid 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ define([
47
47
48
48
imports : {
49
49
totalRecords : '${ $.provider }:data.totalRecords' ,
50
+ showTotalRecords : '${ $.provider }:data.showTotalRecords' ,
50
51
rows : '${ $.provider }:data.items'
51
52
} ,
52
53
@@ -78,6 +79,7 @@ define([
78
79
'allSelected' ,
79
80
'indetermine' ,
80
81
'totalRecords' ,
82
+ 'showTotalRecords' ,
81
83
'rows'
82
84
] ) ;
83
85
@@ -345,6 +347,7 @@ define([
345
347
excluded : this . excluded ( ) ,
346
348
selected : this . selected ( ) ,
347
349
total : this . totalSelected ( ) ,
350
+ showTotalRecords : this . showTotalRecords ( ) ,
348
351
excludeMode : this . excludeMode ( ) ,
349
352
params : this . getFiltering ( )
350
353
} ;
Original file line number Diff line number Diff line change @@ -178,7 +178,9 @@ define([
178
178
var confirmData = action . confirm ,
179
179
data = this . getSelections ( ) ,
180
180
total = data . total ? data . total : 0 ,
181
- confirmMessage = confirmData . message + ' (' + total + ' record' + ( total > 1 ? 's' : '' ) + ')' ;
181
+ confirmMessage = confirmData . message + ( data . showTotalRecords || data . showTotalRecords === undefined ?
182
+ ' (' + total + ' record' + ( total > 1 ? 's' : '' ) + ')'
183
+ : '' ) ;
182
184
183
185
confirm ( {
184
186
title : confirmData . title ,
You can’t perform that action at this time.
0 commit comments