change attach and detach icons
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
@@ -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();
|
||||
}
|
Reference in New Issue
Block a user