keycloak-memoizeit

Merge pull request #3006 from vmuzikar/KEYCLOAK-3280-master KEYCLOAK-3280

7/12/2016 2:30:37 AM

Details

diff --git a/themes/src/main/resources/theme/base/admin/resources/js/services.js b/themes/src/main/resources/theme/base/admin/resources/js/services.js
index 11e9d59..6630c25 100755
--- a/themes/src/main/resources/theme/base/admin/resources/js/services.js
+++ b/themes/src/main/resources/theme/base/admin/resources/js/services.js
@@ -158,6 +158,8 @@ module.factory('Notifications', function($rootScope, $timeout) {
     $rootScope.notification = notifications.current;
 
 	notifications.message = function(type, header, message) {
+        notifications.current.remove();
+        
         notifications.current.type = type;
         notifications.current.header = header;
         notifications.current.message = message;