Fix devices length comparation
This commit is contained in:
parent
3da1bdcad1
commit
881f56e3e4
|
@ -91,10 +91,10 @@ window.addEventListener("DOMContentLoaded", () => {
|
||||||
: "<a href=\"#\" class=\"ml-3\">Cancel selection</a>"
|
: "<a href=\"#\" class=\"ml-3\">Cancel selection</a>"
|
||||||
}`;
|
}`;
|
||||||
|
|
||||||
if (TableController.getAllDevices().length > 0) {
|
if (TableController.getSelectedDevices().length <= 0) {
|
||||||
alertInfoDevices.classList.remove("d-none");
|
|
||||||
} else {
|
|
||||||
alertInfoDevices.classList.add("d-none")
|
alertInfoDevices.classList.add("d-none")
|
||||||
|
} else {
|
||||||
|
alertInfoDevices.classList.remove("d-none");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isAllChecked.every(bool => bool == true)) {
|
if (isAllChecked.every(bool => bool == true)) {
|
||||||
|
|
Reference in New Issue