Skip to content
Snippets Groups Projects
Commit c2ba1217 authored by Hagen Dreßler's avatar Hagen Dreßler
Browse files

Rename variable

parent 4d5d93c6
1 merge request!66Resolve "Fix - AppRouting"
......@@ -12,7 +12,7 @@
{{ room.description }}
</p>
<mat-action-row>
<button mat-button routerLink="/{{ role }}/room/{{ room.id }}">Join room</button>
<button mat-button routerLink="/{{ baseUrl }}/room/{{ room.id }}">Join room</button>
</mat-action-row>
</mat-expansion-panel>
</mat-accordion>
......@@ -12,7 +12,7 @@ import {UserRole} from '../user-roles.enum';
export class RoomListComponent implements OnInit {
rooms: Room[];
closedRooms: Room[];
role: string;
baseUrl: string;
constructor(
private roomService: RoomService,
......@@ -25,9 +25,9 @@ export class RoomListComponent implements OnInit {
getPath() {
if (this.authenticationService.getRole() == UserRole.CREATOR) {
this.role = 'creator';
this.baseUrl = 'creator';
} else {
this.role = 'participant';
this.baseUrl = 'participant';
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment