Browse Source

ui: fix dc # of failing checks

pull/98/head
Jack Pearkes 11 years ago
parent
commit
309f5b3cf6
  1. 5
      ui/javascripts/app/controllers.js

5
ui/javascripts/app/controllers.js

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

Loading…
Cancel
Save