Added some code comments

pull/8406/head
Aleix Suau 5 years ago committed by Wieland Lindenthal
parent 98052b00d6
commit 9d4c58ffe6
  1. 6
      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!,

Loading…
Cancel
Save