fix add new instance handler

This commit is contained in:
Arthur Lu 2023-07-11 00:22:49 +00:00
parent 84d3512417
commit defc667041

View File

@ -189,7 +189,7 @@ async function handleInstanceAdd () {
templateImage.selectedIndex = -1;
});
const userResources = await requestAPI("/user/resources", "GET");
const userResources = await requestAPI("/user/dynamic/resources", "GET");
const userCluster = await requestAPI("/user/config/cluster", "GET");
d.querySelector("#cores").max = userResources.avail.cores;
d.querySelector("#memory").max = userResources.avail.memory;