replace alert bodals with toasts

This commit is contained in:
2022-12-09 00:51:26 +02:00
parent c403c45d72
commit 0f8596db1e
13 changed files with 89 additions and 101 deletions

View File

@ -33,7 +33,9 @@
const packages = dependencyInput.val();
if (packages) {
packageRebuildModal.modal("hide");
doPackageAction("/api/v1/service/rebuild", [packages], "Repository rebuild ran for the following dependencies:", "Repository rebuild failed:");
const onSuccess = update => { return `Repository rebuild has been run for packages which depend on ${update}`; };
const onFailure = error => { return `Repository rebuild failed: ${error}`; };
doPackageAction("/api/v1/service/rebuild", [packages], onSuccess, onFailure);
}
}
</script>