OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix newRoute on full view
Oliver Günther081ba59455a4
diff --git a/frontend/src/app/modules/work_packages/routing/work-packages-routes.ts b/frontend/src/app/modules/work_packages/routing/work-packages-routes.tsindex d7653f5805d..773749c2779 100644--- a/frontend/src/app/modules/work_packages/routing/work-packages-routes.ts+++ b/frontend/src/app/modules/work_packages/routing/work-packages-routes.ts@@ -31,7 +31,6 @@ import {WorkPackageRelationsTabComponent} from 'core-components/wp-single-view-timport {WorkPackageWatchersTabComponent} from 'core-components/wp-single-view-tabs/watchers-tab/watchers-tab.component';import {WorkPackageNewFullViewComponent} from 'core-components/wp-new/wp-new-full-view.component';import {WorkPackageCopyFullViewComponent} from 'core-components/wp-copy/wp-copy-full-view.component';-import {WorkPackageNewSplitViewComponent} from 'core-components/wp-new/wp-new-split-view.component';import {WorkPackageCopySplitViewComponent} from 'core-components/wp-copy/wp-copy-split-view.component';import {WorkPackagesFullViewComponent} from "core-app/modules/work_packages/routing/wp-full-view/wp-full-view.component";import {WorkPackageSplitViewComponent} from "core-app/modules/work_packages/routing/wp-split-view/wp-split-view.component";@@ -92,6 +91,7 @@ export const WORK_PACKAGES_ROUTES:Ng2StateDeclaration[] = [component: WorkPackagesFullViewComponent,data: {bodyClasses: 'router--work-packages-full-view',+ newRoute: 'work-packages.new',menuItem: menuItemClass}},diff --git a/frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.component.ts b/frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.component.tsindex fe0588d6403..d4bedfd1c4b 100644--- a/frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.component.ts+++ b/frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.component.ts@@ -34,6 +34,7 @@ import {Component, Injector, OnInit} from '@angular/core';import {WorkPackageViewSelectionService} from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service';import {WorkPackageSingleViewBase} from "core-app/modules/work_packages/routing/wp-view-base/work-package-single-view.base";import {BackRoutingService} from "core-app/modules/common/back-routing/back-routing.service";+import {of} from "rxjs";@Component({templateUrl: './wp-full-view.html',@@ -59,6 +60,8 @@ export class WorkPackagesFullViewComponent extends WorkPackageSingleViewBase imppublic actionsAvailable:any;public triggerMoreMenuAction:Function;+ stateName$ = of('work-packages.new');+constructor(public injector:Injector,public wpTableSelection:WorkPackageViewSelectionService,public backRoutingService:BackRoutingService,diff --git a/frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.html b/frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.htmlindex fb60ed108e0..36c596aaa01 100644--- a/frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.html+++ b/frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.html@@ -26,7 +26,7 @@<li class="toolbar-item hidden-for-mobile"><wp-create-button[allowed]="['work_package.addChild', 'work_package.copy']"- stateName="work-packages.new">+ [stateName$]="stateName$"></wp-create-button></li><li class="toolbar-item" *ngIf="displayWatchButton">