devices deletion and fix bugs

This commit is contained in:
Ivan
2023-09-22 22:47:53 +03:00
parent 2a227043eb
commit c6b92f06e0
7 changed files with 95 additions and 6 deletions

View File

@ -83,6 +83,7 @@ const createTable = () => {
trashButton.setAttribute("class", "trash");
trashButton.value = `delete-device-${device.id}`;
trashButton.id = `delete-device-${device.id}`;
trashButton.setAttribute("onclick", `deleteDevice(${device.id})`);
trashCell.appendChild(trashButton);
}
if (EditTransport) {