This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/js/directives/ui/notifications-bubble.js

20 lines
601 B
JavaScript
Raw Normal View History

/**
* An element which displays the number and kind of application notifications. If there are no
* notifications, then the element is hidden/empty.
*/
angular.module('quay').directive('notificationsBubble', function () {
var directiveDefinitionObject = {
priority: 0,
templateUrl: '/static/directives/notifications-bubble.html',
replace: false,
transclude: false,
restrict: 'C',
scope: {
},
controller: function($scope, UserService, NotificationService) {
$scope.notificationService = NotificationService;
}
};
return directiveDefinitionObject;
});