FIX: makes dashboard more resilient to errors (#6217)

This commit is an attempt to limit cases where the dashboard will generate a full exception page and also make it easier to track the error.
This commit is contained in:
Joffrey JAFFEUX
2018-07-31 21:23:28 -04:00
committed by GitHub
parent 7d8286e7ad
commit 2b2a506a7b
12 changed files with 135 additions and 76 deletions

View File

@ -110,7 +110,9 @@ export default Ember.Component.extend({
unregisterTooltip($(".info[data-tooltip]"));
},
showTimeoutError: Ember.computed.alias("model.timeout"),
showError: Ember.computed.or("showTimeoutError", "showExceptionError"),
showTimeoutError: Ember.computed.equal("model.error", "timeout"),
showExceptionError: Ember.computed.equal("model.error", "exception"),
hasData: Ember.computed.notEmpty("model.data"),