Merge pull request #132 from ammendonca/KEYCLOAK-134
KEYCLOAK-134: Increase notification time from 3 to 5 seconds.
This commit is contained in:
commit
6d9e1ea60c
1 changed files with 4 additions and 1 deletions
|
@ -55,6 +55,9 @@ module.service('Dialog', function($dialog) {
|
|||
});
|
||||
|
||||
module.factory('Notifications', function($rootScope, $timeout) {
|
||||
// time (in ms) the notifications are shown
|
||||
var delay = 5000;
|
||||
|
||||
var notifications = {};
|
||||
|
||||
var scheduled = null;
|
||||
|
@ -66,7 +69,7 @@ module.factory('Notifications', function($rootScope, $timeout) {
|
|||
scheduled = $timeout(function() {
|
||||
$rootScope.notification = null;
|
||||
scheduled = null;
|
||||
}, 3000);
|
||||
}, delay);
|
||||
};
|
||||
|
||||
if (!$rootScope.notifications) {
|
||||
|
|
Loading…
Reference in a new issue