Merge pull request #132 from ammendonca/KEYCLOAK-134

KEYCLOAK-134: Increase notification time from 3 to 5 seconds.
This commit is contained in:
stianst 2013-12-11 06:16:20 -08:00
commit 6d9e1ea60c

View file

@ -55,6 +55,9 @@ module.service('Dialog', function($dialog) {
}); });
module.factory('Notifications', function($rootScope, $timeout) { module.factory('Notifications', function($rootScope, $timeout) {
// time (in ms) the notifications are shown
var delay = 5000;
var notifications = {}; var notifications = {};
var scheduled = null; var scheduled = null;
@ -66,7 +69,7 @@ module.factory('Notifications', function($rootScope, $timeout) {
scheduled = $timeout(function() { scheduled = $timeout(function() {
$rootScope.notification = null; $rootScope.notification = null;
scheduled = null; scheduled = null;
}, 3000); }, delay);
}; };
if (!$rootScope.notifications) { if (!$rootScope.notifications) {