|
|
|
@ -42,11 +42,12 @@ angular.module('openproject.workPackages.controllers') |
|
|
|
|
'PaginationService', |
|
|
|
|
'AuthorisationService', |
|
|
|
|
'UrlParamsHelper', |
|
|
|
|
'PathHelper', |
|
|
|
|
'OPERATORS_AND_LABELS_BY_FILTER_TYPE', |
|
|
|
|
function($scope, $rootScope, $state, $location, latestTab, |
|
|
|
|
I18n, WorkPackagesTableService, |
|
|
|
|
WorkPackageService, ProjectService, QueryService, PaginationService, |
|
|
|
|
AuthorisationService, UrlParamsHelper, |
|
|
|
|
AuthorisationService, UrlParamsHelper, PathHelper, |
|
|
|
|
OPERATORS_AND_LABELS_BY_FILTER_TYPE) { |
|
|
|
|
|
|
|
|
|
// Setup
|
|
|
|
@ -302,4 +303,8 @@ angular.module('openproject.workPackages.controllers') |
|
|
|
|
$state.go(latestTab.getStateName(), { workPackageId: id, query_props: $location.search().query_props }); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
$scope.workPackageNewPath = function(typeId) { |
|
|
|
|
return PathHelper.staticWorkPackageNewWithParametersPath($scope.projectIdentifier, { type_id: typeId }) |
|
|
|
|
}; |
|
|
|
|
}]); |
|
|
|
|