Show degraded component in bottom bar, if only one
This commit is contained in:
parent
9cbeb6086c
commit
87e820c138
2 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,13 @@ angular.module('quay').directive('quayServiceStatus', function () {
|
|||
$scope.indicator = data['status']['indicator'];
|
||||
$scope.incidents = data['incidents'];
|
||||
$scope.description = data['status']['description'];
|
||||
$scope.degraded = [];
|
||||
|
||||
data['components'].forEach(function(component, index) {
|
||||
if (component.status != 'operational') {
|
||||
$scope.degraded.push(component);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Reference in a new issue