mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
upload: Don't hide upload status if there are errors.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user