Fixed failing tests, and added stopPropagation to prevent maximizing of notifications on action click or dismiss

This commit is contained in:
Henry
2015-10-14 14:08:35 -07:00
parent 1d41939418
commit 912e70d219
6 changed files with 16 additions and 8 deletions

View File

@@ -28,7 +28,12 @@ define(
function BannerController($scope, notificationService, dialogService) {
$scope.active = notificationService.active;
$scope.MessageSeverity = MessageSeverity;
$scope.dismiss = function(notification) {
$scope.action = function (action, $event){
$event.stopPropagation();
return action();
}
$scope.dismiss = function(notification, $event) {
$event.stopPropagation();
notificationService.dismissOrMinimize(notification);
};
$scope.maximize = function(notification) {