add query select for addDiskDevice
This commit is contained in:
parent
4f8f4ae863
commit
d43363c066
@ -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";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user