Add scheduled scheduled maintenances to the status bar
This commit is contained in:
parent
9254cda0db
commit
bc6baae050
2 changed files with 9 additions and 2 deletions
|
@ -1,7 +1,13 @@
|
||||||
<div class="announcement inline" ng-show="indicator != 'none' && indicator != 'loading' && incidents">
|
<div class="announcement inline"
|
||||||
|
ng-show="indicator != 'loading' && (scheduled_maintenances.length || incidents.length)">
|
||||||
<div ng-repeat="incident in incidents">
|
<div ng-repeat="incident in incidents">
|
||||||
<span class="quay-service-status-indicator" ng-class="indicator"
|
<span class="quay-service-status-indicator" ng-class="indicator"
|
||||||
ng-if="indicator != 'loading'"></span>
|
ng-if="indicator != 'loading'"></span>
|
||||||
<a ng-href="{{ incident.shortlink }}" class="quay-service-status-description">{{ incident.name }}</a>
|
<a ng-href="{{ incident.shortlink }}" class="quay-service-status-description">{{ incident.name }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div ng-repeat="scheduled in scheduled_maintenances">
|
||||||
|
<i class="fa fa-calendar" style="margin-right: 6px;"></i>
|
||||||
|
<a ng-href="{{ scheduled.shortlink }}" class="quay-service-status-description">{{ scheduled.name }}</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -14,7 +14,8 @@ angular.module('quay').directive('quayServiceStatusBar', function () {
|
||||||
|
|
||||||
StatusService.getStatus(function(data) {
|
StatusService.getStatus(function(data) {
|
||||||
$scope.indicator = data['status']['indicator'];
|
$scope.indicator = data['status']['indicator'];
|
||||||
$scope.incidents = data['incidents'];
|
$scope.incidents = data['incidents'] || [];
|
||||||
|
$scope.scheduled_maintenances = data['scheduled_maintenances'] || [];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue