minor optimizations to instance card config and console actions

This commit is contained in:
2025-05-18 01:12:58 +00:00
parent e6cd1fbb3d
commit 53832b67a2
6 changed files with 51 additions and 60 deletions

View File

@@ -19,7 +19,7 @@ async function init () {
initNetworks();
initDevices();
document.querySelector("#exit").addEventListener("click", handleFormExit);
document.querySelector("#config-form").addEventListener("submit", handleFormExit);
}
class VolumeAction extends HTMLElement {
@@ -530,7 +530,8 @@ async function refreshBoot () {
}
}
async function handleFormExit () {
async function handleFormExit (event) {
event.preventDefault();
const body = {
cores: document.querySelector("#cores").value,
memory: document.querySelector("#ram").value