Remove EditableFieldsState dependency from view button directive

pull/3941/head
Alex Dik 9 years ago
parent ed2b0a4006
commit a61db10c59
  1. 4
      frontend/app/components/wp-buttons/view-button/view-button.directive.js

@ -39,13 +39,13 @@ function wpViewButton() {
};
}
function WorkPackageViewButtonController($scope, $state, EditableFieldsState) {
function WorkPackageViewButtonController($scope, $state) {
$scope.isShowViewActive = function() {
return $state.includes('work-packages.show');
};
$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);
} else {

Loading…
Cancel
Save