add query select for addDiskDevice

This commit is contained in:
Arthur Lu 2023-01-11 02:58:22 -08:00
parent 4f8f4ae863
commit d43363c066

View File

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