|
|
@ -39,13 +39,13 @@ function wpViewButton() { |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function WorkPackageViewButtonController($scope, $state, EditableFieldsState) { |
|
|
|
function WorkPackageViewButtonController($scope, $state) { |
|
|
|
$scope.isShowViewActive = function() { |
|
|
|
$scope.isShowViewActive = function() { |
|
|
|
return $state.includes('work-packages.show'); |
|
|
|
return $state.includes('work-packages.show'); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
$scope.showWorkPackageShowView = function() { |
|
|
|
$scope.showWorkPackageShowView = function() { |
|
|
|
if (EditableFieldsState.editAll.state && $state.params.type) { |
|
|
|
if ($state.is('work-packages.list.new') && $state.params.type) { |
|
|
|
$state.go('work-packages.new', $state.params); |
|
|
|
$state.go('work-packages.new', $state.params); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|