Skip to content

Commit 36ec97c

Browse files
committed
adjust modelling tool i-frame
1 parent cd19ddb commit 36ec97c

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

modules/fbs-core/web/src/app/page-components/fbs-modelling/fbs-modelling.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class FbsModellingComponent implements OnInit {
2525
}
2626

2727
getURL(): SafeResourceUrl {
28-
const url = `https://fbs-modelling.mni.thm.de/#/login?jsessionid=${this.token}`;
28+
const url = `https://fbs-modelling.mni.thm.de/#/login?jsessionid=${this.token}&iframe=true`;
2929
this.safeUrl = this.sanitizer.bypassSecurityTrustResourceUrl(url);
3030
this.cdr.detach(); // stops iframe from reloading
3131
return this.safeUrl;

modules/fbs-core/web/src/app/page-components/sidebar/sidebar.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ <h1>
6969
<p>{{ "sidebar.label.analyticsPlatform" | i18nextEager }}</p>
7070
</a>
7171

72-
<a mat-list-item routerLink="/modelling" routerLinkActive="selected">
73-
<mat-icon> format_shapes</mat-icon>
74-
<p>FBS Modellierung</p>
75-
</a>
72+
<button mat-list-item (click)="moveAndHideSidebar('/modelling')">
73+
<mat-icon>format_shapes</mat-icon>
74+
<p>FBS Modelling</p>
75+
</button>
7676
</mat-nav-list>
7777

7878
<span class="filler"></span>

modules/fbs-core/web/src/app/page-components/sidebar/sidebar.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,10 @@ export class SidebarComponent implements OnInit {
103103
window.open("/feedbackApp/");
104104
});
105105
}
106+
107+
moveAndHideSidebar(route: string) {
108+
console.log("moveAndHideSidebar");
109+
this.router.navigate([route]);
110+
this.opened = false;
111+
}
106112
}

0 commit comments

Comments
 (0)