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
2019-11-12 11:09:47 -05:00

19 lines
601 B
JavaScript

/**
* 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;
});