Status: Don't raise "abort" as error to the user
If the request was aborted, the failure should not be presented to the user as nothing actually went wrong. This happens when a request is not finished when next 'update' starts. This is amplified by the page visibility events that will start an 'update' loop prematurely. Without this, switching between tabs often causes the user to see a "status.json: abort" message when they come back to the dashboard. Also remove redundant (and incorrectly labeled) arguments. Change-Id: I834384535f8d04d1274336bc993c20035be01d60
This commit is contained in:
parent
af8ff837d5
commit
67f4ac16d5
@ -682,7 +682,10 @@
|
||||
data.result_event_queue.length : '0'
|
||||
);
|
||||
})
|
||||
.fail(function (err, jqXHR, errMsg) {
|
||||
.fail(function (jqXHR, statusText, errMsg) {
|
||||
if (statusText === 'abort') {
|
||||
return;
|
||||
}
|
||||
$msg.text(options.source + ': ' + errMsg)
|
||||
.addClass('alert-danger')
|
||||
.removeClass('zuul-msg-wrap-off')
|
||||
|
Loading…
Reference in New Issue
Block a user