2022-12-19 06:14:57 +00:00
|
|
|
import {request, goToPage, getURIData} from "./utils.js";
|
|
|
|
|
|
|
|
window.addEventListener("DOMContentLoaded", init);
|
|
|
|
|
|
|
|
async function init () {
|
|
|
|
let uriData = getURIData();
|
2022-12-20 00:13:43 +00:00
|
|
|
let node = uriData.node;
|
|
|
|
let type = uriData.type;
|
|
|
|
let vmid = uriData.vmid;
|
|
|
|
await populateForm(node, type, vmid);
|
|
|
|
}
|
|
|
|
|
|
|
|
async function populateForm (node, type, vmid) {
|
2022-12-20 00:21:24 +00:00
|
|
|
let config = await request(`/nodes/${node}/${type}/${vmid}/config`);
|
2022-12-20 00:13:43 +00:00
|
|
|
console.log(config);
|
2022-12-19 06:14:57 +00:00
|
|
|
}
|