Skip to content
Snippets Groups Projects
Commit 49272ef0 authored by Thomas Lenz's avatar Thomas Lenz
Browse files

Changed route to the new creators-room-component after creation of a new room

parent ad084740
Branches
Tags
No related merge requests found
...@@ -37,7 +37,7 @@ export class RoomCreationComponent implements OnInit { ...@@ -37,7 +37,7 @@ export class RoomCreationComponent implements OnInit {
this.roomService.addRoom({ name: longRoomName, abbreviation: shortRoomName } as Room) this.roomService.addRoom({ name: longRoomName, abbreviation: shortRoomName } as Room)
.subscribe(room => { .subscribe(room => {
this.notification.show(`Room '${room.name}' successfully created.`); this.notification.show(`Room '${room.name}' successfully created.`);
this.router.navigate([`room/${room.id}`]); this.router.navigate([`creator/room/${room.id}`]);
this.dialogRef.close(); this.dialogRef.close();
}); });
} }
......
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