ui: fix dc # of failing checks

This commit is contained in:
Jack Pearkes 2014-05-01 13:19:43 -04:00
parent 993b892761
commit ab69329d74
1 changed files with 2 additions and 3 deletions

View File

@ -49,9 +49,8 @@ App.DcController = Ember.Controller.extend({
// Boolean if the datacenter has any failing checks. // Boolean if the datacenter has any failing checks.
// //
hasFailingChecks: function() { hasFailingChecks: function() {
var checks = this.get('checks') var failingChecks = this.get('totalChecksFailing')
return (checks.filterBy('Status', 'critical').get('length') + return (failingChecks > 0);
checks.filterBy('Status', 'warning').get('length'));
}.property('nodes'), }.property('nodes'),
actions: { actions: {