From 63149d812d49cf56a13b04fbcc2edb5819be8009 Mon Sep 17 00:00:00 2001 From: tekay <tom.kaesler@mni.thm.de> Date: Fri, 15 Mar 2019 12:28:21 +0100 Subject: [PATCH] fix path for feedback view use shortId for frontend url use roomId for subscribing to backend channels --- .../room-participant-page/room-participant-page.component.html | 2 +- .../feedback-barometer-page.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/participant/room-participant-page/room-participant-page.component.html b/src/app/components/participant/room-participant-page/room-participant-page.component.html index 791349770..c361e9994 100644 --- a/src/app/components/participant/room-participant-page/room-participant-page.component.html +++ b/src/app/components/participant/room-participant-page/room-participant-page.component.html @@ -30,7 +30,7 @@ </mat-grid-tile> <mat-grid-tile> <button mat-icon-button color="primary" matTooltip="{{ 'room-page.give-feedback' | translate}}" - routerLink="/participant/room/{{ room.id }}/feedback-barometer"> + routerLink="/participant/room/{{ room.shortId }}/feedback-barometer"> <mat-icon>thumbs_up_down</mat-icon> </button> </mat-grid-tile> diff --git a/src/app/components/shared/feedback-barometer-page/feedback-barometer-page.component.ts b/src/app/components/shared/feedback-barometer-page/feedback-barometer-page.component.ts index e4e74b34d..3305628f6 100644 --- a/src/app/components/shared/feedback-barometer-page/feedback-barometer-page.component.ts +++ b/src/app/components/shared/feedback-barometer-page/feedback-barometer-page.component.ts @@ -30,7 +30,7 @@ export class FeedbackBarometerPageComponent implements OnInit { private notification: NotificationService, private rxStompService: RxStompService, private route: ActivatedRoute, ) { - this.roomId = this.route.snapshot.params.roomId; + this.roomId = localStorage.getItem(`roomId`); } ngOnInit() { -- GitLab