change attach and detach icons

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
2023-01-19 18:08:00 +00:00
parent 33bdb0b19e
commit 8676eb6dc3
4 changed files with 8 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
import {request, goToPage, getURIData} from "./utils.js";
import {request, goToPage, getURIData, reload} from "./utils.js";
window.addEventListener("DOMContentLoaded", init);
@@ -142,6 +142,7 @@ async function addDiskLine (fieldset, busPrefix, busName, device, disk) {
action.src = `images/actions/${element}-${active}.svg`;
action.title = `${element.charAt(0).toUpperCase()}${element.slice(1)} Disk`;
}
action.id = `${busPrefix}${device}`
actionDiv.append(action);
});
field.append(actionDiv);

View File

@@ -90,4 +90,8 @@ export function getURIData () {
export function deleteAllCookies () {
document.cookie.split(";").forEach(function(c) { document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/;domain=.tronnet.net;"); });
}
export function reload () {
window.location.reload();
}