ProxmoxAAS-Dashboard/scripts/config.js
Arthur Lu ef4597490a populate static elements of config.html,
add node info to config page search,
change login.css to form.css
2022-12-19 16:13:43 -08:00

16 lines
436 B
JavaScript

import {request, goToPage, getURIData} from "./utils.js";
window.addEventListener("DOMContentLoaded", init);
async function init () {
let uriData = getURIData();
let node = uriData.node;
let type = uriData.type;
let vmid = uriData.vmid;
await populateForm(node, type, vmid);
}
async function populateForm (node, type, vmid) {
let config = request(`/nodes/${node}/${type}/${vmid}/config`);
console.log(config);
}