diff --git a/src/app/creator-room/creator-room.component.html b/src/app/creator-room/creator-room.component.html index 6f26cfd8005272545c97a00b29934b01c73523ff..6752ed17b71c88dc61085f0389afd1d8b3c7cc38 100644 --- a/src/app/creator-room/creator-room.component.html +++ b/src/app/creator-room/creator-room.component.html @@ -24,7 +24,7 @@ routerLink="/creator/room/{{room.id}}/comments"> Comments </button> - <button mat-button color="warn" matTooltip="Enables deletion dialog" (click)="enableDeletion()"> + <button mat-button color="warn" matTooltip="Enables deletion dialog" (click)="showDeletionDialog()"> Delete room </button> <button mat-button color="primary" matTooltip="Go back to last page" (click)="goBack()"> @@ -39,7 +39,7 @@ <button mat-raised-button color="warn" matTooltip="Delete selected room" (click)="deleteRoom(room)"> Delete room </button> - <button mat-raised-button color="primary" matTooltip="Leave delete dialog" (click)="disableDeletion()"> + <button mat-raised-button color="primary" matTooltip="Leave delete dialog" (click)="hideDeletionDialog()"> Leave </button> </mat-card-content> diff --git a/src/app/creator-room/creator-room.component.ts b/src/app/creator-room/creator-room.component.ts index 75469a290bf592f48d7ed2dde5a2ceacf7fa45e7..f16bd13ca26910e011e3caa160e5311441ccb165 100644 --- a/src/app/creator-room/creator-room.component.ts +++ b/src/app/creator-room/creator-room.component.ts @@ -32,18 +32,16 @@ export class CreatorRoomComponent extends RoomComponent implements OnInit { this.location.back(); } - enableDeletion(): void { + showDeletionDialog(): void { this.deleteDialog = true; } - disableDeletion(): void { + hideDeletionDialog(): void { this.deleteDialog = false; } - deleteRoom(room: Room): void { const msg = room.name + ' deleted'; this.notification.show(msg); this.delete(room); } - }