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

Fix app-routing

parent bee78b73
No related merge requests found
......@@ -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] }
......
......@@ -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>
......
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