|
|
@ -26,6 +26,7 @@ |
|
|
|
// See doc/COPYRIGHT.rdoc for more details.
|
|
|
|
// See doc/COPYRIGHT.rdoc for more details.
|
|
|
|
// ++
|
|
|
|
// ++
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import {WorkPackageEditModeStateService} from "../wp-edit/wp-edit-mode-state.service"; |
|
|
|
angular |
|
|
|
angular |
|
|
|
.module('openproject') |
|
|
|
.module('openproject') |
|
|
|
.config(($stateProvider, $urlRouterProvider, $urlMatcherFactoryProvider) => { |
|
|
|
.config(($stateProvider, $urlRouterProvider, $urlMatcherFactoryProvider) => { |
|
|
@ -103,8 +104,8 @@ angular |
|
|
|
projects: {value: null, squash: true} |
|
|
|
projects: {value: null, squash: true} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
onEnter: ($state, $stateParams, inplaceEditAll) => { |
|
|
|
onEnter: ($state, $stateParams, wpEditModeState:WorkPackageEditModeStateService) => { |
|
|
|
inplaceEditAll.start(); |
|
|
|
wpEditModeState.start(); |
|
|
|
$state.go('work-packages.list.details.overview', $stateParams); |
|
|
|
$state.go('work-packages.list.details.overview', $stateParams); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
@ -140,6 +141,14 @@ angular |
|
|
|
angular.element('body').removeClass('action-show'); |
|
|
|
angular.element('body').removeClass('action-show'); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
.state('work-packages.show.edit', { |
|
|
|
|
|
|
|
url: '/edit', |
|
|
|
|
|
|
|
reloadOnSearch: false, |
|
|
|
|
|
|
|
onEnter: ($state, $stateParams, wpEditModeState:WorkPackageEditModeStateService) => { |
|
|
|
|
|
|
|
wpEditModeState.start(); |
|
|
|
|
|
|
|
$state.go('work-packages.show', $stateParams); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
.state('work-packages.show.activity', panels.activity) |
|
|
|
.state('work-packages.show.activity', panels.activity) |
|
|
|
.state('work-packages.show.activity.details', panels.activityDetails) |
|
|
|
.state('work-packages.show.activity.details', panels.activityDetails) |
|
|
|
.state('work-packages.show.relations', panels.relations) |
|
|
|
.state('work-packages.show.relations', panels.relations) |
|
|
|