feat(webui): add "add missing warframes" & "add missing weapons" #775

Merged
Sainan merged 4 commits from bulk into main 2025-01-14 20:20:17 -08:00
Showing only changes of commit 89c0cbbfae - Show all commits

View File

@ -594,7 +594,10 @@ function addMissingWarframes() {
requests.push({ type: "Powersuit", internalName: elm.getAttribute("data-key") });
}
});
if (requests.length != 0 && window.confirm("Are you sure you want to add " + requests.length + " items to your account?")) {
if (
requests.length != 0 &&
window.confirm("Are you sure you want to add " + requests.length + " items to your account?")
) {
dispatchAddItemsRequestsBatch(requests);
}
}
@ -606,7 +609,10 @@ function addMissingWeapons() {
requests.push({ type: "Weapon", internalName: elm.getAttribute("data-key") });
}
});
if (requests.length != 0 && window.confirm("Are you sure you want to add " + requests.length + " items to your account?")) {
if (
requests.length != 0 &&
window.confirm("Are you sure you want to add " + requests.length + " items to your account?")
) {
dispatchAddItemsRequestsBatch(requests);
}
}