#3741 fix(datatables): fixes datatable selection count on text filter (#4358)

pull/4367/head
panchbhai1969 2020-10-05 03:28:53 +05:30 committed by GitHub
parent 0ed4d443ee
commit da29c2b6a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ angular.module('portainer.app').controller('GenericDatatableController', [
item.Checked = !item.Checked;
this.state.firstClickedItem = item;
}
this.state.selectedItems = this.state.filteredDataSet.filter((i) => i.Checked);
this.state.selectedItems = this.dataset.filter((i) => i.Checked);
if (event && this.state.selectAll && this.state.selectedItems.length !== this.state.filteredDataSet.length) {
this.state.selectAll = false;
}