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

[#38981] fixed merge issues

Eric Schubert6fbe4351a37b
diff --git a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts
index ea6fe13aa57..5480e9213e9 100644
--- a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts
+++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts
@@ -70,11 +70,11 @@ export class IFCViewerComponent implements OnInit, OnDestroy {
@ViewChild('modelCanvas') modelCanvas:ElementRef;
constructor(private I18n:I18nService,
- private elementRef:ElementRef,
- public ifcData:IfcModelsDataService,
- private ifcViewer:IFCViewerService,
- private currentUserService:CurrentUserService,
- private currentProjectService:CurrentProjectService) {
+ private elementRef:ElementRef,
+ public ifcData:IfcModelsDataService,
+ private ifcViewer:IFCViewerService,
+ private currentUserService:CurrentUserService,
+ private currentProjectService:CurrentProjectService) {
this.inspectorVisible$ = this.ifcViewer.inspectorVisible$;
}
@@ -100,7 +100,7 @@ export class IFCViewerComponent implements OnInit, OnDestroy {
this.ifcViewer.newViewer(
{
canvasElement: element.find('[data-qa-selector="op-ifc-viewer--model-canvas"]')[0], // WebGL canvas
- explorerElement: jQuery('.op-ifc-viewer--tree-panel')[0], // Left panel
+ explorerElement: jQuery('[data-qa-selector="op-ifc-viewer--tree-panel"]')[0], // Left panel
toolbarElement: element.find('[data-qa-selector="op-ifc-viewer--toolbar-container"]')[0], // Toolbar
inspectorElement: element.find('[data-qa-selector="op-ifc-viewer--inspector-container"]')[0], // Toolbar
navCubeCanvasElement: element.find('[data-qa-selector="op-ifc-viewer--nav-cube-canvas"]')[0],
@@ -130,7 +130,7 @@ export class IFCViewerComponent implements OnInit, OnDestroy {
@HostListener('window:mousedown', ['$event.target'])
disableKeyboard(target:Element) {
- if (this.modelCount && !this.outerContainer.nativeElement!.contains(target)) {
+ if (this.modelCount && !this.outerContainer.nativeElement.contains(target)) {
this.keyboardEnabled = false;
this.ifcViewer.setKeyboardEnabled(false);
}
diff --git a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts
index bc6299bb8a3..5e2438cde86 100644
--- a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts
+++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts
@@ -174,7 +174,7 @@ export class IFCViewerService extends ViewerBridgeService {
// and redirect to a route with a place to show viewer
// ('bim.partitioned.split')
window.location.href = this.pathHelper.bimDetailsPath(
- workPackage.project.idFromLink,
+ idFromLink(workPackage.project.href),
workPackage.id!,
index,
);