From 9d4c58ffe675ba95fa50066242a82a7ef96ca188 Mon Sep 17 00:00:00 2001 From: Aleix Suau Date: Thu, 21 May 2020 14:03:47 +0200 Subject: [PATCH] Added some code comments --- .../modules/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 a7c52dcaa5..cd4c1bdfed 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!,