diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index 3d355574..3bae4ce3 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -91,10 +91,10 @@ window.addEventListener("DOMContentLoaded", () => { : "Cancel selection" }`; - if (TableController.getAllDevices().length > 0) { - alertInfoDevices.classList.remove("d-none"); - } else { + if (TableController.getSelectedDevices().length <= 0) { alertInfoDevices.classList.add("d-none") + } else { + alertInfoDevices.classList.remove("d-none"); } if (isAllChecked.every(bool => bool == true)) {