|
|
@ -32,7 +32,8 @@ angular.module('openproject.uiComponents') |
|
|
|
.directive('flashMessage', [ |
|
|
|
.directive('flashMessage', [ |
|
|
|
'$rootScope', |
|
|
|
'$rootScope', |
|
|
|
'$timeout', |
|
|
|
'$timeout', |
|
|
|
function($rootScope, $timeout) { |
|
|
|
'ConfigurationService', |
|
|
|
|
|
|
|
function($rootScope, $timeout, ConfigurationService) { |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
restrict: 'E', |
|
|
|
restrict: 'E', |
|
|
@ -53,9 +54,11 @@ angular.module('openproject.uiComponents') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// fade out after time out
|
|
|
|
// fade out after time out
|
|
|
|
|
|
|
|
if (!ConfigurationService.accessibilityModeEnabled()) { |
|
|
|
$timeout(function() { |
|
|
|
$timeout(function() { |
|
|
|
scope.message = undefined; |
|
|
|
scope.message = undefined; |
|
|
|
}, fadeOutTime); |
|
|
|
}, fadeOutTime); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|