min input content,

disable disk device reassignment for all disks

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-17 10:18:22 -08:00
parent f3b9a5d81e
commit 5e03f48ba6
2 changed files with 10 additions and 0 deletions

View File

@ -24,6 +24,7 @@ input, label, legend {
input {
border: solid white 1px;
width: min-content;
}
input:focus {

View File

@ -122,6 +122,10 @@ function addDiskLine (fieldset, busPrefix, busName, device, diskDataParsed, stor
deviceInput.disabled = true;
deviceInput.classList.add("hidden");
}
// for now, disable disk device reassignment
deviceInput.disabled = true;
//
deviceInput.addEventListener("change", handleDeviceChange);
field.append(deviceInput);
let storage = diskDataParsed.storage;
@ -164,6 +168,11 @@ function addDiskLine (fieldset, busPrefix, busName, device, diskDataParsed, stor
field.append(deleteDiv);
}
function handleDeviceChange () {
let newDevice = this.value;
if () {}
}
function getOrderedUsed(entry){
let ordered_keys = Object.keys(entry.used).sort((a,b) => {parseInt(a) - parseInt(b)}); // ordered integer list
return ordered_keys;