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

Add provider for IfcModelsDataService to class

Inga Mai3706682ca8ab
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.ts
index c9632d57f10..8cdf3231491 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
@@ -10,6 +10,7 @@ import {CausedUpdatesService} from "core-app/modules/boards/board/caused-updates
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";
+import {IfcModelsDataService} from "core-app/modules/bim/ifc_models/pages/viewer/ifc-models-data.service";
@Component({
templateUrl: '/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.html',
@@ -24,6 +25,7 @@ import {wpDisplayCardRepresentation} from "core-app/modules/work_packages/routin
})
export class BcfListContainerComponent extends WorkPackageListViewComponent implements OnInit {
@InjectField() bimView:BimViewService;
+ @InjectField() ifcModelsService:IfcModelsDataService;
public wpTableConfiguration = {
dragAndDropEnabled: false
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.ts
index 6d91e158344..c8a99ffb3f3 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
@@ -44,7 +44,6 @@ import {CurrentProjectService} from "core-components/projects/current-project.se
import {WorkPackageViewFiltersService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
import {UntilDestroyedMixin} from "core-app/helpers/angular/until-destroyed.mixin";
import {QueryResource} from "core-app/modules/hal/resources/query-resource";
-import {IfcModelsDataService} from "core-app/modules/bim/ifc_models/pages/viewer/ifc-models-data.service";
@Component({
selector: 'wp-list-view',
@@ -90,7 +89,6 @@ export class WorkPackageListViewComponent extends UntilDestroyedMixin implements
readonly deviceService:DeviceService,
readonly CurrentProject:CurrentProjectService,
readonly wpDisplayRepresentation:WorkPackageViewDisplayRepresentationService,
- readonly ifcModelsService:IfcModelsDataService,
readonly cdRef:ChangeDetectorRef) {
super();
}