mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
fix(frontend): fix incorrect datatable selection count on text filter change (#4474)
Co-authored-by: Simon Meng <simon@mcpacino.tk>
This commit is contained in:
parent
f681e2d532
commit
f656ad7124
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ angular.module('portainer.app').controller('GenericDatatableController', [
|
|||
item.Checked = !item.Checked;
|
||||
this.state.firstClickedItem = item;
|
||||
}
|
||||
this.state.selectedItems = this.dataset.filter((i) => i.Checked);
|
||||
this.state.selectedItems = _.uniq(_.concat(this.state.selectedItems, this.state.filteredDataSet)).filter((i) => i.Checked);
|
||||
if (event && this.state.selectAll && this.state.selectedItems.length !== this.state.filteredDataSet.length) {
|
||||
this.state.selectAll = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue