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
Add context menu for BCF page
Oliver Günther8c8bfff6cdcb
diff --git a/frontend/src/app/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts b/frontend/src/app/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.tsindex e3d65d6494b..ecca941f2b4 100644--- a/frontend/src/app/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts+++ b/frontend/src/app/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts@@ -3,17 +3,13 @@ import {WorkPackageAction,WorkPackageContextMenuHelperService} from "core-components/wp-table/context-menu-helper/wp-context-menu-helper.service";-import {WorkPackageTable} from "core-components/wp-fast-table/wp-fast-table";import {States} from "core-components/states.service";import {WorkPackageRelationsHierarchyService} from "core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";import {WorkPackageViewSelectionService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";import {LinkHandling} from "core-app/modules/common/link-handling/link-handling";import {OpContextMenuHandler} from "core-components/op-context-menu/op-context-menu-handler";import {OPContextMenuService} from "core-components/op-context-menu/op-context-menu.service";-import {- OpContextMenuItem,- OpContextMenuLocalsMap-} from "core-components/op-context-menu/op-context-menu.types";+import {OpContextMenuItem, OpContextMenuLocalsMap} from "core-components/op-context-menu/op-context-menu.types";import {PERMITTED_CONTEXT_MENU_ACTIONS} from "core-components/op-context-menu/wp-context-menu/wp-static-context-menu-actions";import {OpModalService} from "core-components/op-modals/op-modal.service";import {WpDestroyModal} from "core-components/modals/wp-destroy-modal/wp-destroy.modal";@@ -36,6 +32,10 @@ export class WorkPackageViewContextMenu extends OpContextMenuHandler {PERMITTED_CONTEXT_MENU_ACTIONS,this.allowSplitScreenActions);++ // Get the base route for the current route to ensure we always link correctly+ protected baseRoute = this.$state.current.data.baseRoute || this.$state.current.name;+protected items = this.buildItems();constructor(public injector:Injector,@@ -47,7 +47,7 @@ export class WorkPackageViewContextMenu extends OpContextMenuHandler {}public get locals():OpContextMenuLocalsMap {- return {contextMenuId: 'work-package-context-menu', items: this.items};+ return { contextMenuId: 'work-package-context-menu', items: this.items };}public positionArgs(evt:JQuery.TriggeredEvent) {@@ -85,7 +85,7 @@ export class WorkPackageViewContextMenu extends OpContextMenuHandler {private deleteSelectedWorkPackages() {let selected = this.getSelectedWorkPackages();- this.opModalService.show(WpDestroyModal, this.injector, {workPackages: selected});+ this.opModalService.show(WpDestroyModal, this.injector, { workPackages: selected });}private editSelectedWorkPackages(link:any) {@@ -109,7 +109,7 @@ export class WorkPackageViewContextMenu extends OpContextMenuHandler {copiedFromWorkPackageId: selected[0].id};- this.$state.go('work-packages.partitioned.list.copy', params);+ this.$state.go(this.baseRoute + '.copy', params);}private getSelectedWorkPackages() {@@ -151,7 +151,7 @@ export class WorkPackageViewContextMenu extends OpContextMenuHandler {disabled: false,icon: 'icon-view-fullscreen',class: 'openFullScreenView',- href: this.$state.href('work-packages.show', {workPackageId: this.workPackageId}),+ href: this.$state.href('work-packages.show', { workPackageId: this.workPackageId }),linkText: I18n.t('js.button_open_fullscreen'),onClick: ($event:JQuery.TriggeredEvent) => {if (LinkHandling.isClickedWithModifier($event)) {@@ -160,7 +160,7 @@ export class WorkPackageViewContextMenu extends OpContextMenuHandler {this.$state.go('work-packages.show',- {workPackageId: this.workPackageId}+ { workPackageId: this.workPackageId });return true;}@@ -171,7 +171,7 @@ export class WorkPackageViewContextMenu extends OpContextMenuHandler {disabled: false,icon: 'icon-view-split',class: 'detailsViewMenuItem',- href: this.$state.href('work-packages.partitioned.list.details.overview', {workPackageId: this.workPackageId}),+ href: this.$state.href(this.baseRoute + '.details.overview', { workPackageId: this.workPackageId }),linkText: I18n.t('js.button_open_details'),onClick: ($event:JQuery.TriggeredEvent) => {if (LinkHandling.isClickedWithModifier($event)) {@@ -179,8 +179,8 @@ export class WorkPackageViewContextMenu extends OpContextMenuHandler {}this.$state.go(- 'work-packages.partitioned.list.details.overview',- {workPackageId: this.workPackageId}+ this.baseRoute + '.details.overview',+ { workPackageId: this.workPackageId });return true;}diff --git a/frontend/src/app/components/states.service.ts b/frontend/src/app/components/states.service.tsindex a74558e04e5..b0949e8510b 100644--- a/frontend/src/app/components/states.service.ts+++ b/frontend/src/app/components/states.service.ts@@ -13,7 +13,7 @@ import {Subject} from "rxjs";import {QuerySortByResource} from "core-app/modules/hal/resources/query-sort-by-resource";import {QueryGroupByResource} from "core-app/modules/hal/resources/query-group-by-resource";import {VersionResource} from "core-app/modules/hal/resources/version-resource";-import {wpDisplayRepresentation} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";+import {WorkPackageDisplayRepresentationValue} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";import {TimeEntryResource} from "core-app/modules/hal/resources/time-entry-resource";export class States extends StatesGroup {@@ -53,7 +53,7 @@ export class States extends StatesGroup {changes = new GlobalStateChanges();// Additional state map that can be dynamically registered.- additional:{[id:string]:MultiInputState<HalResource>} = {};+ additional:{ [id:string]:MultiInputState<HalResource> } = {};forResource(resource:HalResource):InputState<HalResource>|undefined {const stateName = _.camelCase(resource._type) + 's';@@ -90,5 +90,5 @@ export class QueryAvailableDataStates {filters = input<QueryFilterInstanceSchemaResource[]>();// Display of the WP results- displayRepresentation = input<wpDisplayRepresentation|null>();+ displayRepresentation = input<WorkPackageDisplayRepresentationValue|null>();}diff --git a/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts b/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.tsindex dedfb46ec82..9e83f59cdef 100644--- a/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts+++ b/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts@@ -9,10 +9,11 @@ import {DragAndDropService} from "core-app/modules/common/drag-and-drop/drag-andimport {CausedUpdatesService} from "core-app/modules/boards/board/caused-updates/caused-updates.service";import {bimSplitViewIdentifier, BimViewService} from "core-app/modules/bim/ifc_models/pages/viewer/bim-view.service";import {InjectField} from "core-app/helpers/angular/inject-field.decorator";+import {wpDisplayCardRepresentation} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";@Component({templateUrl: '/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.html',- styleUrls: ['../../../../../../app/modules/work_packages/routing/wp-list-view/wp-list-view.component.sass'],+ styleUrls: ['/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.sass'],providers: [{ provide: WorkPackageViewHandlerToken, useValue: BcfCardViewHandlerRegistry },{ provide: HalResourceNotificationService, useClass: WorkPackageNotificationService },@@ -22,10 +23,11 @@ import {InjectField} from "core-app/helpers/angular/inject-field.decorator";changeDetection: ChangeDetectionStrategy.OnPush})export class BcfListContainerComponent extends WorkPackageListViewComponent implements OnInit {- @InjectField() private bimView:BimViewService;+ @InjectField() bimView:BimViewService;- protected shouldShowAsListView(query:QueryResource):boolean {- return false;+ protected updateViewRepresentation(query:QueryResource) {+ this.wpDisplayRepresentation.setDisplayRepresentation(wpDisplayCardRepresentation);+ this.showListView = false;}protected showResizerInCardView():boolean {diff --git a/frontend/src/app/modules/bim/ifc_models/ifc-base-view/event-handler/bcf-card-view-handler-registry.ts b/frontend/src/app/modules/bim/ifc_models/ifc-base-view/event-handler/bcf-card-view-handler-registry.tsindex 6d09f6ffdc1..ea89bfa02ab 100644--- a/frontend/src/app/modules/bim/ifc_models/ifc-base-view/event-handler/bcf-card-view-handler-registry.ts+++ b/frontend/src/app/modules/bim/ifc_models/ifc-base-view/event-handler/bcf-card-view-handler-registry.ts@@ -5,6 +5,7 @@ import {} from "core-components/wp-card-view/event-handler/card-view-handler-registry";import {BcfDoubleClickHandler} from "core-app/modules/bim/ifc_models/ifc-base-view/event-handler/bcf-double-click-handler";import {BcfClickHandler} from "core-app/modules/bim/ifc_models/ifc-base-view/event-handler/bcf-click-handler";+import {CardRightClickHandler} from "core-components/wp-card-view/event-handler/right-click-handler";export class BcfCardViewHandlerRegistry extends CardViewHandlerRegistry {@@ -14,6 +15,8 @@ export class BcfCardViewHandlerRegistry extends CardViewHandlerRegistry {c => new BcfClickHandler(this.injector, c),// Double clicking on the cardc => new BcfDoubleClickHandler(this.injector, c),+ // Right clicking on cards+ t => new CardRightClickHandler(this.injector, t),];}diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts b/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component.tsindex 3b7823cb773..33d1bf91761 100644--- a/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts+++ b/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts@@ -26,8 +26,7 @@ import {componentDestroyed} from "@w11k/ngx-componentdestroyed";@Component({templateUrl: '/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html',styleUrls: [- // Absolute paths do not work for styleURLs :-(- '../../../../work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass'+ '/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass'],changeDetection: ChangeDetectionStrategy.OnPush,providers: [diff --git a/frontend/src/app/modules/work_packages/routing/split-view-routes.template.ts b/frontend/src/app/modules/work_packages/routing/split-view-routes.template.tsindex 89510d57dbf..6d5ac1e1d95 100644--- a/frontend/src/app/modules/work_packages/routing/split-view-routes.template.ts+++ b/frontend/src/app/modules/work_packages/routing/split-view-routes.template.ts@@ -33,6 +33,7 @@ import {WorkPackageWatchersTabComponent} from 'core-components/wp-single-view-taimport {WorkPackageNewSplitViewComponent} from 'core-components/wp-new/wp-new-split-view.component';import {Ng2StateDeclaration} from "@uirouter/angular";import {ComponentType} from "@angular/cdk/overlay";+import {WorkPackageCopySplitViewComponent} from "core-components/wp-copy/wp-copy-split-view.component";/*** Return a set of routes for a split view mounted under the given base route,@@ -74,7 +75,7 @@ export function makeSplitViewRoutes(baseRoute:string,views: {// Retarget and by that override the grandparent views// https://ui-router.github.io/guide/views#relative-parent-state- 'content-right@^.^': {component: showComponent}+ 'content-right@^.^': { component: showComponent }}},{@@ -129,8 +130,25 @@ export function makeSplitViewRoutes(baseRoute:string,views: {// Retarget and by that override the grandparent views// https://ui-router.github.io/guide/views#relative-parent-state- 'content-right@^.^': {component: newComponent}+ 'content-right@^.^': { component: newComponent }}},+ // Split copy route+ {+ name: baseRoute + '.copy',+ url: '/details/{copiedFromWorkPackageId:[0-9]+}/copy',+ views: {+ 'content-right@^.^': { component: WorkPackageCopySplitViewComponent }+ },+ reloadOnSearch: false,+ data: {+ baseRoute: baseRoute,+ parent: baseRoute,+ allowMovingInEditMode: true,+ bodyClasses: 'router--work-packages-partitioned-split-view',+ menuItem: menuItemClass,+ partition: '-split'+ },+ },];}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 1c7c900b2e9..981a78ffea9 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 {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";import {Ng2StateDeclaration} from "@uirouter/angular";@@ -156,22 +155,6 @@ export const WORK_PACKAGES_ROUTES:Ng2StateDeclaration[] = [partition: '-left-only'}},- {- name: 'work-packages.partitioned.list.copy',- url: '/details/{copiedFromWorkPackageId:[0-9]+}/copy',- views: {- 'content-right@^.^': { component: WorkPackageCopySplitViewComponent }- },- reloadOnSearch: false,- data: {- baseRoute: 'work-packages',- allowMovingInEditMode: true,- bodyClasses: 'router--work-packages-partitioned-split-view',- menuItem: menuItemClass,- parent: 'work-packages.partitioned.list',- partition: '-split'- },- },...makeSplitViewRoutes('work-packages.partitioned.list',menuItemClass,diff --git a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts b/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.tsindex ce666a879ca..2dcc8ea280f 100644--- a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts+++ b/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts@@ -79,14 +79,14 @@ export class WorkPackageListViewComponent extends UntilDestroyedMixin implementsdragAndDropEnabled: true};- constructor(private I18n:I18nService,+ constructor(readonly I18n:I18nService,readonly injector:Injector,- private querySpace:IsolatedQuerySpace,- private wpViewFilters:WorkPackageViewFiltersService,- private deviceService:DeviceService,- private CurrentProject:CurrentProjectService,- private wpDisplayRepresentation:WorkPackageViewDisplayRepresentationService,- private cdRef:ChangeDetectorRef) {+ readonly querySpace:IsolatedQuerySpace,+ readonly wpViewFilters:WorkPackageViewFiltersService,+ readonly deviceService:DeviceService,+ readonly CurrentProject:CurrentProjectService,+ readonly wpDisplayRepresentation:WorkPackageViewDisplayRepresentationService,+ readonly cdRef:ChangeDetectorRef) {super();}@@ -98,7 +98,7 @@ export class WorkPackageListViewComponent extends UntilDestroyedMixin implementsthis.untilDestroyed()).subscribe((query) => {// Update the visible representation- this.showListView = this.shouldShowAsListView(query);+ this.updateViewRepresentation(query);this.cdRef.detectChanges();});}@@ -115,12 +115,12 @@ export class WorkPackageListViewComponent extends UntilDestroyedMixin implements});}- protected shouldShowAsListView(query:QueryResource):boolean {- return !(this.deviceService.isMobile || this.wpDisplayRepresentation.valueFromQuery(query) === wpDisplayCardRepresentation);- }-protected showResizerInCardView():boolean {return false;}+ protected updateViewRepresentation(query:QueryResource) {+ this.showListView = !(this.deviceService.isMobile ||+ this.wpDisplayRepresentation.valueFromQuery(query) === wpDisplayCardRepresentation);+ }}diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service.ts b/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service.tsindex b2855def933..06a9adb8e17 100644--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service.ts+++ b/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service.ts@@ -31,14 +31,11 @@ import {WorkPackageQueryStateService} from './wp-view-base.service';import {States} from 'core-components/states.service';import {IsolatedQuerySpace} from "core-app/modules/work_packages/query-space/isolated-query-space";import {Injectable} from '@angular/core';-import {combine, InputState} from "reactivestates";-import {Observable} from "rxjs";-import {mapTo} from "rxjs/operators";-export const wpDisplayListRepresentation:string = 'list';-export const wpDisplayCardRepresentation:string = 'card';-export type wpDisplayRepresentation = 'list'|'card';+export const wpDisplayListRepresentation = 'list';+export const wpDisplayCardRepresentation = 'card';+export type WorkPackageDisplayRepresentationValue = 'list'|'card';@Injectable()export class WorkPackageViewDisplayRepresentationService extends WorkPackageQueryStateService<string|null> {@@ -67,7 +64,7 @@ export class WorkPackageViewDisplayRepresentationService extends WorkPackageQuer}public get isList():boolean {- const current = this.current+ const current = this.current;return !current || current === wpDisplayListRepresentation;}@@ -75,7 +72,7 @@ export class WorkPackageViewDisplayRepresentationService extends WorkPackageQuerreturn this.current === wpDisplayCardRepresentation;}- public setDisplayRepresentation(representation:string) {+ public setDisplayRepresentation(representation:WorkPackageDisplayRepresentationValue) {this.update(representation);}}diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts b/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.tsindex 07cdf10b031..e01adfd587e 100644--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts+++ b/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts@@ -28,23 +28,17 @@/*jshint expr: true*/-import {CurrentProjectService} from "core-components/projects/current-project.service";-import {GlobalSearchService} from "core-app/modules/global_search/services/global-search.service";-import {I18nService} from "core-app/modules/common/i18n/i18n.service";import {async, TestBed} from "@angular/core/testing";-import {PathHelperService} from "core-app/modules/common/path-helper/path-helper.service";import {States} from "core-components/states.service";import {IsolatedQuerySpace} from "core-app/modules/work_packages/query-space/isolated-query-space";import {WorkPackageViewHierarchiesService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";import {WorkPackageRelationsHierarchyService} from "core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";import {WorkPackageViewHierarchyIdentationService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service";-import SpyObj = jasmine.SpyObj;-import {WorkPackageResource} from "core-app/modules/hal/resources/work-package-resource";import {WorkPackageCacheService} from "core-components/work-packages/work-package-cache.service";-import {SchemaCacheService} from "core-components/schemas/schema-cache.service";-import {WorkPackageDmService} from "core-app/modules/hal/dm-services/work-package-dm.service";+import {WorkPackageViewDisplayRepresentationService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";+import SpyObj = jasmine.SpyObj;-describe('WorkPackageViewIndentation service', function() {+describe('WorkPackageViewIndentation service', function () {let service:WorkPackageViewHierarchyIdentationService;let states:States;let querySpace:IsolatedQuerySpace;@@ -77,19 +71,20 @@ describe('WorkPackageViewIndentation service', function() {States,IsolatedQuerySpace,WorkPackageCacheService,+ { provide: WorkPackageViewDisplayRepresentationService, useValue: { isList: true } },{ provide: WorkPackageCacheService, useClass: WorkPackageCacheServiceStub },{ provide: WorkPackageViewHierarchiesService, useClass: HierarchyServiceStub },- { provide: WorkPackageRelationsHierarchyService, useValue: parentServiceSpy },+ { provide: WorkPackageRelationsHierarchyService, useValue: parentServiceSpy },WorkPackageViewHierarchyIdentationService]})- .compileComponents()- .then(() => {- service = TestBed.get(WorkPackageViewHierarchyIdentationService);- querySpace = TestBed.get(IsolatedQuerySpace);- hierarchyServiceStub = TestBed.get(WorkPackageViewHierarchiesService);- states = TestBed.get(States);- });+ .compileComponents()+ .then(() => {+ service = TestBed.get(WorkPackageViewHierarchyIdentationService);+ querySpace = TestBed.get(IsolatedQuerySpace);+ hierarchyServiceStub = TestBed.get(WorkPackageViewHierarchiesService);+ states = TestBed.get(States);+ });}));describe('canIndent', () => {diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts b/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.tsindex 993c773eb7a..62f37c7e5e3 100644--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts+++ b/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts@@ -1,18 +1,17 @@-import {QueryResource} from 'core-app/modules/hal/resources/query-resource';-import {WorkPackageQueryStateService} from './wp-view-base.service';import {Injectable} from '@angular/core';-import {WorkPackageViewHierarchies} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-hierarchies";import {WorkPackageResource} from "core-app/modules/hal/resources/work-package-resource";import {WorkPackageViewHierarchiesService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";import {IsolatedQuerySpace} from "core-app/modules/work_packages/query-space/isolated-query-space";import {WorkPackageRelationsHierarchyService} from "core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";import {States} from "core-components/states.service";import {WorkPackageCacheService} from "core-components/work-packages/work-package-cache.service";+import {WorkPackageViewDisplayRepresentationService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";@Injectable()export class WorkPackageViewHierarchyIdentationService {constructor(private wpViewHierarchies:WorkPackageViewHierarchiesService,+ private wpDisplayRepresentation:WorkPackageViewDisplayRepresentationService,private states:States,private wpRelationHierarchy:WorkPackageRelationsHierarchyService,private wpCacheService:WorkPackageCacheService,@@ -23,7 +22,7 @@ export class WorkPackageViewHierarchyIdentationService {* Return whether the current hierarchy mode is active*/public get applicable():boolean {- return this.wpViewHierarchies.isEnabled;+ return this.wpViewHierarchies.isEnabled && this.wpDisplayRepresentation.isList;}/**