Disable WP-create button for create states universally

pull/3943/head
Alex Dik 9 years ago
parent a54fcdd472
commit 26dacf4739
  1. 2
      frontend/app/components/wp-buttons/create-button/create-button.directive.js

@ -53,7 +53,7 @@ function WorkPackageCreateButtonController($state, ProjectService) {
vm.text = I18n.t('js.toolbar.unselected_title');
vm.isDisabled = function () {
return !inProjectContext || !canCreate || $state.is('work-packages.list.new') || !vm.types;
return !inProjectContext || !canCreate || $state.includes('**.new') || !vm.types;
};
if (inProjectContext) {

Loading…
Cancel
Save