diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 64355dff4f8613dbb68333effaa93da48e3221d3..4cf85ee216c539ad653a0311f83ec133bb8da475 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -29,7 +29,7 @@ const routes: Routes = [ data: { roles: [UserRole.PARTICIPANT] } }, { - path: 'room/:roomId', + path: 'creator/room/:roomId', component: RoomComponent, canActivate: [AuthenticationGuard] }, @@ -39,7 +39,7 @@ const routes: Routes = [ canActivate: [AuthenticationGuard] }, { - path: 'room/:roomId/comments', + path: 'creator/room/:roomId/comments', component: CommentListComponent, canActivate: [AuthenticationGuard], data: { roles: [UserRole.CREATOR] } diff --git a/src/app/room/room.component.html b/src/app/room/room.component.html index 581e828d571ba5ae17e6fcd65018df714e08dfeb..bd84e9ca24cb6a32d292d1bfdeddc6283e8e905f 100644 --- a/src/app/room/room.component.html +++ b/src/app/room/room.component.html @@ -8,11 +8,7 @@ <mat-list-item>Description: {{room.description}}</mat-list-item> <mat-list-item>Closed: {{room.closed}}</mat-list-item> - <button mat-button routerLink="/room/{{room.id}}/create-comment"> - Create comment <!-- Only for participant --> - </button> - - <button mat-button routerLink="/room/{{room.id}}/comments"> + <button mat-button routerLink="/creator/room/{{room.id}}/comments"> Visit comments <!-- Only for creator --> </button> </mat-list>