ui: see warning as failing

This commit is contained in:
Jack Pearkes 2014-05-01 12:51:23 -04:00
parent 17423ea654
commit a40a845f91

View File

@ -50,7 +50,8 @@ App.DcController = Ember.Controller.extend({
//
hasFailingChecks: function() {
var checks = this.get('checks')
return (checks.filterBy('Status', 'critical').get('length') > 0);
return (checks.filterBy('Status', 'critical').get('length') +
checks.filterBy('Status', 'warning').get('length'));
}.property('nodes'),
actions: {