Revision 9ffd10ce ui/static/snf/js/sync.js
b/ui/static/snf/js/sync.js | ||
---|---|---|
413 | 413 |
|
414 | 414 |
// on api error update the api error_state |
415 | 415 |
api.bind("error", function() { |
416 |
if (snf.api.error_state == snf.api.STATES.ERROR) { return }; |
|
417 |
|
|
416 | 418 |
var args = _.toArray(_.toArray(arguments)[0]); |
417 | 419 |
var params = _.last(args); |
418 | 420 |
|
... | ... | |
420 | 422 |
snf.api.error_state = api.STATES.ERROR; |
421 | 423 |
snf.api.stop_calls = true; |
422 | 424 |
} else { |
423 |
snf.api.error_state = api.STATES.WARN;
|
|
425 |
snf.api.error_state = api.STATES.ERROR;
|
|
424 | 426 |
} |
425 | 427 |
snf.api.trigger("change:error_state", snf.api.error_state); |
426 | 428 |
}); |
Also available in: Unified diff