feat(webui): add "add missing mods" #804

Merged
Sainan merged 7 commits from addmods into main 2025-01-18 16:57:39 -08:00
Showing only changes of commit 8702b95a81 - Show all commits

View File

@ -1083,6 +1083,7 @@ function doAddAllMods() {
modsAll.add(child.getAttribute("data-key"));
}
revalidateAuthz(() => {
const req = $.get("/api/inventory.php?" + window.authz + "&xpBasedLevelCapDisabled=1");
req.done(data => {
for (const modOwned of data.RawUpgrades) {
@ -1098,7 +1099,6 @@ function doAddAllMods() {
batches.push(modsAll.slice(i, i + 1000));
}
batches.forEach(batch => {
revalidateAuthz(() => {
$.post({
url: "/api/missionInventoryUpdate.php?" + window.authz,
contentType: "text/plain",