mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-09 00:22:19 -04:00
Merge pull request #2080 from sman591/ui-aborted-requests
ui: don’t consider aborted requests complete
This commit is contained in:
commit
5238a6845e
2 changed files with 41 additions and 38 deletions
File diff suppressed because one or more lines are too long
|
|
@ -364,7 +364,10 @@ Prometheus.Graph.prototype.submitQuery = function() {
|
|||
self.showError("Error executing query: " + err);
|
||||
}
|
||||
},
|
||||
complete: function() {
|
||||
complete: function(xhr, resp) {
|
||||
if (resp == "abort") {
|
||||
return;
|
||||
}
|
||||
var duration = new Date().getTime() - startTime;
|
||||
self.evalStats.html("Load time: " + duration + "ms <br /> Resolution: " + resolution + "s");
|
||||
self.spinner.hide();
|
||||
|
|
|
|||
Loading…
Reference in a new issue