mirror of https://github.com/status-im/consul.git
ui: fix dc # of failing checks
This commit is contained in:
parent
c0372ddf18
commit
309f5b3cf6
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue