|
|
|
@ -35,6 +35,7 @@ angular.module('openproject.workPackages.controllers') |
|
|
|
|
'$location', |
|
|
|
|
'$stateParams', |
|
|
|
|
'$state', |
|
|
|
|
'latestTab', |
|
|
|
|
'I18n', |
|
|
|
|
'WorkPackagesTableService', |
|
|
|
|
'WorkPackageService', |
|
|
|
@ -46,7 +47,7 @@ angular.module('openproject.workPackages.controllers') |
|
|
|
|
'HALAPIResource', |
|
|
|
|
'INITIALLY_SELECTED_COLUMNS', |
|
|
|
|
'OPERATORS_AND_LABELS_BY_FILTER_TYPE', |
|
|
|
|
function($scope, $rootScope, $q, $location, $stateParams, $state, |
|
|
|
|
function($scope, $rootScope, $q, $location, $stateParams, $state, latestTab, |
|
|
|
|
I18n, WorkPackagesTableService, |
|
|
|
|
WorkPackageService, ProjectService, QueryService, PaginationService, |
|
|
|
|
AuthorisationService, WorkPackageLoadingHelper, HALAPIResource, INITIALLY_SELECTED_COLUMNS, |
|
|
|
@ -206,4 +207,9 @@ angular.module('openproject.workPackages.controllers') |
|
|
|
|
$scope.$watch(QueryService.getQueryName, function(queryName){ |
|
|
|
|
$scope.selectedTitle = queryName || I18n.t('js.toolbar.unselected_title'); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$scope.openLatestTab = function() { |
|
|
|
|
$state.go(latestTab.getStateName(), { workPackageId: $scope.preselectedWorkPackageId }); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
}]); |
|
|
|
|