replace alert bodals with toasts

This commit is contained in:
2022-12-09 00:51:26 +02:00
parent 2d5b73c6dc
commit 7df4adfc9d
13 changed files with 89 additions and 101 deletions

View File

@@ -60,7 +60,10 @@
},
error: (jqXHR, _, errorThrown) => {
// show failed modal in case if first time loading
if (isPackageBaseSet) showFailure("Load failure", `Could not load package ${packageBase} logs:`, errorThrown);
if (isPackageBaseSet) {
const message = error => { return `Could not load package ${packageBase} logs: ${error}`; };
showFailure("Load failure", message, jqXHR, errorThrown);
}
},
});
}