Commit 41fc66a5 authored by Tom Käsler's avatar Tom Käsler

Fix return from room settings dialog

parent a44ff792
Pipeline #27058 passed with stages
in 6 minutes and 54 seconds
......@@ -67,7 +67,7 @@ export class RoomEditComponent implements OnInit {
this.notificationService.show(room.name + msg);
});
this.roomService.deleteRoom(room.id).subscribe();
this.dialogRef.close();
this.dialogRef.close('delete');
this.router.navigate([`/creator`]);
}
......
......@@ -70,7 +70,7 @@ export class RoomCreatorPageComponent extends RoomPageComponent implements OnIni
.subscribe(result => {
if (result === 'abort') {
return;
} else {
} else if (result !== 'delete') {
this.updateRoom(+result);
}
});
......
Markdown is supported
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