diff --git a/frontend/app/components/wp-buttons/create-button/create-button.directive.js b/frontend/app/components/wp-buttons/create-button/create-button.directive.js index 6068267d74..c96230d6fe 100644 --- a/frontend/app/components/wp-buttons/create-button/create-button.directive.js +++ b/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) {