File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
app/code/Magento/Ui/view/base/web/js/grid Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ define([
4747
4848 imports : {
4949 totalRecords : '${ $.provider }:data.totalRecords' ,
50+ showTotalRecords : '${ $.provider }:data.showTotalRecords' ,
5051 rows : '${ $.provider }:data.items'
5152 } ,
5253
@@ -78,6 +79,7 @@ define([
7879 'allSelected' ,
7980 'indetermine' ,
8081 'totalRecords' ,
82+ 'showTotalRecords' ,
8183 'rows'
8284 ] ) ;
8385
@@ -345,6 +347,7 @@ define([
345347 excluded : this . excluded ( ) ,
346348 selected : this . selected ( ) ,
347349 total : this . totalSelected ( ) ,
350+ showTotalRecords : this . showTotalRecords ( ) ,
348351 excludeMode : this . excludeMode ( ) ,
349352 params : this . getFiltering ( )
350353 } ;
Original file line number Diff line number Diff line change @@ -178,7 +178,9 @@ define([
178178 var confirmData = action . confirm ,
179179 data = this . getSelections ( ) ,
180180 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+ : '' ) ;
182184
183185 confirm ( {
184186 title : confirmData . title ,
You can’t perform that action at this time.
0 commit comments