Check devices in current page

This commit is contained in:
RubenPX 2022-05-11 11:20:25 +02:00
parent cc7b453c06
commit 411fe85b19
1 changed files with 1 additions and 1 deletions

View File

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