add colon to sata config

This commit is contained in:
Arthur Lu 2022-12-20 18:01:44 -08:00
parent 163542102d
commit 8341b88c76

View File

@ -34,7 +34,7 @@ async function populateForm (node, type, vmid) {
let sata = config.data[`sata${i}`]; let sata = config.data[`sata${i}`];
sata = `{"${sata.replaceAll(":", '":"').replaceAll("=", '":"').replaceAll(",", '","')}"}`; sata = `{"${sata.replaceAll(":", '":"').replaceAll("=", '":"').replaceAll(",", '","')}"}`;
sata = JSON.parse(sata); sata = JSON.parse(sata);
addFormLine("resources", `sata${i}`, `SATA ${i}`, {type: "text", value: sata.size}); addFormLine("resources", `sata${i}`, `SATA ${i}:`, {type: "text", value: sata.size});
i++; i++;
} }
} }