Banner notifications are not maximized if 'info' message

This commit is contained in:
Henry 2015-10-14 14:16:37 -07:00
parent 912e70d219
commit 301b73c6c6

View File

@ -37,11 +37,13 @@ define(
notificationService.dismissOrMinimize(notification); notificationService.dismissOrMinimize(notification);
}; };
$scope.maximize = function(notification) { $scope.maximize = function(notification) {
if (notification.severity > MessageSeverity.INFO){
notification.cancel = function(){ notification.cancel = function(){
dialogService.dismiss(); dialogService.dismiss();
} }
dialogService.showBlockingMessage(notification); dialogService.showBlockingMessage(notification);
} }
} }
}
return BannerController; return BannerController;
}); });