Add a banner to the Quay UI when an app specific token is about to expire
This commit is contained in:
parent
5b4f5f9859
commit
888b564a9b
9 changed files with 60 additions and 9 deletions
|
@ -9,8 +9,10 @@ angular.module('quay').directive('quayMessageBar', function () {
|
|||
transclude: false,
|
||||
restrict: 'C',
|
||||
scope: {},
|
||||
controller: function ($scope, $element, ApiService) {
|
||||
controller: function ($scope, $element, ApiService, NotificationService) {
|
||||
$scope.messages = [];
|
||||
$scope.NotificationService = NotificationService;
|
||||
|
||||
ApiService.getGlobalMessages().then(function (data) {
|
||||
$scope.messages = data['messages'] || [];
|
||||
}, function (resp) {
|
||||
|
|
Reference in a new issue