add query select for addDiskDevice

This commit is contained in:
Arthur Lu 2023-01-11 02:58:22 -08:00
parent 79fd1f0625
commit cdb06ce8cc

View File

@ -124,6 +124,7 @@ function handleDiskDeviceChange () {
let value = document.querySelector("#add-disk #device").value;
let bus = document.querySelector("#add-disk #bus").value;
let entry = diskConfig[type][bus];
let addDiskDevice = document.querySelector("#add-disk #device");
if(value in entry.used){
addDiskDevice.style.border = "solid red 1px";
}