From 309f5b3cf62de28e17596992b5dc7f93ae9e5707 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Thu, 1 May 2014 13:19:43 -0400 Subject: [PATCH] ui: fix dc # of failing checks --- ui/javascripts/app/controllers.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/javascripts/app/controllers.js b/ui/javascripts/app/controllers.js index 4cd777838e..61183efe36 100644 --- a/ui/javascripts/app/controllers.js +++ b/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: {