parent
5ac7369bf5
commit
9cb1366d36
3 changed files with 11 additions and 7 deletions
|
@ -13,6 +13,8 @@ angular.module('quay').directive('notificationView', function () {
|
|||
'parent': '=parent'
|
||||
},
|
||||
controller: function($scope, $element, $window, $location, UserService, NotificationService, ApiService) {
|
||||
$scope.dismissing = false;
|
||||
|
||||
var stringStartsWith = function (str, prefix) {
|
||||
return str.slice(0, prefix.length) == prefix;
|
||||
};
|
||||
|
@ -51,6 +53,7 @@ angular.module('quay').directive('notificationView', function () {
|
|||
};
|
||||
|
||||
$scope.dismissNotification = function(notification) {
|
||||
$scope.dismissing = true;
|
||||
NotificationService.dismissNotification(notification);
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue