add delete disk button
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
36d93017f9
commit
14ee712d3c
1
images/actions/delete.svg
Normal file
1
images/actions/delete.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg fill="red" width="800" height="800" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path d="M512.481 421.906L850.682 84.621c25.023-24.964 65.545-24.917 90.51.105s24.917 65.545-.105 90.51L603.03 512.377 940.94 850c25.003 24.984 25.017 65.507.033 90.51s-65.507 25.017-90.51.033L512.397 602.764 174.215 940.03c-25.023 24.964-65.545 24.917-90.51-.105s-24.917-65.545.105-90.51l338.038-337.122L84.14 174.872c-25.003-24.984-25.017-65.507-.033-90.51s65.507-25.017 90.51-.033L512.48 421.906z"/></svg>
|
After Width: | Height: | Size: 508 B |
@ -147,6 +147,15 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti
|
||||
sizeInput.disabled = true;
|
||||
}
|
||||
field.append(sizeInput);
|
||||
|
||||
let deleteDiv = document.createElement("div");
|
||||
deleteDiv.classList.add("last-item");
|
||||
let deleteBtn = document.createElement("img");
|
||||
deleteBtn.src = "images/actions/delete.svg";
|
||||
deleteBtn.alt = `Config disk ${labelText}`;
|
||||
deleteBtn.classList.add("clickable");
|
||||
deleteDiv.append(deleteBtn);
|
||||
field.append(deleteDiv);
|
||||
}
|
||||
|
||||
function getOrderedUsed(entry){
|
||||
|
Loading…
Reference in New Issue
Block a user