min input content,
disable disk device reassignment for all disks Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
f3b9a5d81e
commit
5e03f48ba6
@ -24,6 +24,7 @@ input, label, legend {
|
||||
|
||||
input {
|
||||
border: solid white 1px;
|
||||
width: min-content;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user