Add banner when running background tasks

This commit is contained in:
Squidly271 2022-06-16 10:38:30 -04:00
parent ecf9971e3a
commit bfdad3c211
4 changed files with 7 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -2928,7 +2928,13 @@ function getPerPageOpts(value) {
function setupActionCentre() {
// set up action centre - run in background without tying anything up
var acBanner = false;
var bannerTimeout = setTimeout(function(){
acBanner = addBannerWarning("<?tr("Running Background Application Tests")?>");
},1000);
$.post("/plugins/<?=$plugin?>/include/exec.php",{action:'enableActionCentre'},function(data) {
clearTimeout(bannerTimeout);
removeBannerWarning(acBanner);
var ret = JSON.parse(data);
if ( ret.status == "action" )
$(".actionCentre").show();

View File

@ -1,4 +1,4 @@
d657db06b3f6dac2c1ad595e37447994 ./Apps.page
4f5b81b0c0029e43df4eb8e01092bdd7 ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg