Skip to content

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

now unnecessary variables removed

ulferts16991b9ed006
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.ts
index fcb475f509c..36831ba5ab3 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
@@ -26,11 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
// ++
-import {UserResource} from 'core-app/modules/hal/resources/user-resource';
import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';
import {WorkPackageViewFocusService} from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service';
import {StateService} from '@uirouter/core';
-import {TypeResource} from 'core-app/modules/hal/resources/type-resource';
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 {States} from 'core-components/states.service';
@@ -52,13 +50,6 @@ export class WorkPackagesFullViewComponent extends WorkPackageSingleViewBase imp
public displayWatchButton:boolean;
public watchers:any;
- // Properties
- public type:TypeResource;
- public author:UserResource;
- public authorPath:string;
- public authorActive:boolean;
- public attachments:any;
-
// More menu
public permittedActions:any;
public actionsAvailable:any;
@@ -109,16 +100,5 @@ export class WorkPackagesFullViewComponent extends WorkPackageSingleViewBase imp
if (wp.watchers) {
this.watchers = (wp.watchers as any).elements;
}
-
- // Type
- this.type = wp.type;
-
- // Author
- this.author = wp.author;
- this.authorPath = this.author.showUserPath as string;
- this.authorActive = this.author.isActive;
-
- // Attachments
- this.attachments = wp.attachments.elements;
}
}