upload: Don't hide upload status if there are errors.

This commit is contained in:
Vishnu KS
2020-04-16 21:52:43 +05:30
committed by Tim Abbott
parent c06d29d0aa
commit c5eddcb1ca
2 changed files with 9 additions and 1 deletions

View File

@@ -225,7 +225,8 @@ exports.setup_upload = function (config) {
}
});
if (!uploads_in_progress) {
const has_errors = exports.get_item("send_status", config).hasClass("alert-error");
if (!uploads_in_progress && !has_errors) {
setTimeout(function () {
exports.hide_upload_status(config);
}, 500);