|
|
@ -56,9 +56,12 @@ module.exports = function($scope, |
|
|
|
PERMITTED_MORE_MENU_ACTIONS, |
|
|
|
PERMITTED_MORE_MENU_ACTIONS, |
|
|
|
HookService, |
|
|
|
HookService, |
|
|
|
$window, |
|
|
|
$window, |
|
|
|
WorkPackageAttachmentsService |
|
|
|
WorkPackageAttachmentsService, |
|
|
|
|
|
|
|
AuthorisationService |
|
|
|
) { |
|
|
|
) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.can = AuthorisationService.can; |
|
|
|
|
|
|
|
$scope.cannot = AuthorisationService.cannot; |
|
|
|
|
|
|
|
|
|
|
|
$scope.$on('$stateChangeSuccess', function(event, toState){ |
|
|
|
$scope.$on('$stateChangeSuccess', function(event, toState){ |
|
|
|
latestTab.registerState(toState.name); |
|
|
|
latestTab.registerState(toState.name); |
|
|
|