Check devices in current page

This commit is contained in:
RubenPX 2022-05-11 11:20:25 +02:00
parent cc7b453c06
commit 411fe85b19

View file

@ -98,7 +98,7 @@ window.addEventListener("DOMContentLoaded", () => {
if (TableController.getAllDevices().length == TableController.getSelectedDevices().length) {
btnSelectAll.checked = true;
btnSelectAll.indeterminate = false;
} else if(TableController.getAllDevices().length < TableController.getSelectedDevices().length) {
} else if(TableController.getAllSelectedDevicesInCurrentPage().length > 0) {
btnSelectAll.indeterminate = true;
} else {
btnSelectAll.checked = false;