fix add new instance handler

This commit is contained in:
Arthur Lu 2023-07-11 00:22:49 +00:00
parent 1bdb0ae5a0
commit 2b161d44d8

View File

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