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

Added some code comments

Aleix Suau9d4c58ffe675
diff --git a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts b/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts
index a7c52dcaa53..cd4c1bdfed3 100644
--- a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts
+++ b/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts
@@ -98,7 +98,8 @@ export class IFCViewerService extends ViewerBridgeService {
}
public showViewpoint(workPackage:WorkPackageResource, index:number) {
- // Avoid reload the app when
+ // Avoid reload the app when there is a place to show the viewer
+ // ('bim.partitioned.split')
if (this.routeWithViewer) {
if (this.viewer) {
this.viewpointsService
@@ -107,7 +108,8 @@ export class IFCViewerService extends ViewerBridgeService {
}
} else {
// Reload the whole app to get the correct menus and GON data
- // and redirect to a route with a place for the viewer
+ // and redirect to a route with a place to show viewer
+ // ('bim.partitioned.split')
window.location.href = this.pathHelper.bimDetailsPath(
workPackage.project.idFromLink,
workPackage.id!,