Send a basic progressing status to the updates front page

This commit is contained in:
Clément Renault
2020-10-21 15:38:28 +02:00
parent 4eeeccb9cd
commit f6eecb855e
7 changed files with 127 additions and 47 deletions

View File

@ -49,22 +49,16 @@ $(window).on('load', function () {
prependChild(results, elem);
}
if (status.type == "Processing") {
const id = 'update-' + status.update_id;
const content = $(`#${id} .updateStatus.content`);
content.html('processing...');
}
if (status.type == "Progressing") {
const id = 'update-' + status.update_id;
const content = $(`#${id} .updateStatus.content`);
content.html('progressing...');
content.html('progressing... ' + JSON.stringify(status.meta));
}
if (status.type == "Processed") {
const id = 'update-' + status.update_id;
const content = $(`#${id} .updateStatus.content`);
content.html('processed');
content.html('processed ' + JSON.stringify(status.meta));
}
}
});