1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 22:05:23 +02:00

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

This commit is contained in:
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

View file

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