Add support for targeting notifications to organizations and remove the password_required notification for new orbs

This commit is contained in:
Joseph Schorr 2014-03-12 19:00:24 -04:00
parent 578add3b9e
commit 525ef8d14f
8 changed files with 61 additions and 16 deletions

View file

@ -3356,11 +3356,16 @@ quayApp.directive('notificationView', function () {
'notification': '=notification',
'parent': '=parent'
},
controller: function($scope, $element, $location, NotificationService) {
controller: function($scope, $element, $location, UserService, NotificationService) {
$scope.getMessage = function(notification) {
return NotificationService.getMessage(notification);
};
$scope.getGravatar = function(orgname) {
var organization = UserService.getOrganization(orgname);
return organization['gravatar'] || '';
};
$scope.parseDate = function(dateString) {
return Date.parse(dateString);
};