16 lines
442 B
JavaScript
16 lines
442 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 = await request(`/nodes/${node}/${type}/${vmid}/config`);
|
|
console.log(config);
|
|
} |