diff --git a/src/app/creator-room/creator-room.component.html b/src/app/creator-room/creator-room.component.html index 051dc5d43a5e3d0a4157a547fa19320efed8b1aa..78d20e59e31d7a121789c1e50181f05f83e60931 100644 --- a/src/app/creator-room/creator-room.component.html +++ b/src/app/creator-room/creator-room.component.html @@ -18,23 +18,19 @@ </p> </mat-card-content> <mat-divider></mat-divider> - <app-content-list></app-content-list> - <mat-divider></mat-divider> <mat-card-actions> <button mat-button color="primary" matTooltip="Create new content" (click)="createContentDialog()"> Create content </button> - <button mat-button color="primary" matTooltip="See room comments" routerLink="/creator/room/{{room.id}}/comments"> + <button mat-button color="primary" matTooltip="See room comments" + routerLink="/creator/room/{{room.id}}/comments"> Comments </button> <button *ngIf="!modify" (click)="showEditDialog()" mat-button color="primary"> Edit room </button> - <button *ngIf="modify" (click)="updateRoom(roomName.valueOf(), roomShortID.valueOf(), roomDescription.valueOf())" mat-button color="primary" matTooltip="Update room's details"> - Update room - </button> <button mat-button color="warn" (click)="openDeletionRoomDialog()"> Delete room </button> @@ -43,30 +39,6 @@ </button> </mat-card-actions> </mat-card> - <mat-card *ngIf="modify && room" class="input-form"> - <mat-card-header> - <h3>Modify properties</h3> - </mat-card-header> - <mat-card-content fxLayout="column"> - <mat-form-field *ngIf="modify"> - <input [(ngModel)]="room.name" #roomName matInput/> - </mat-form-field> - <mat-form-field> - <input [(ngModel)]="room.shortId" #roomShortID matInput/> - </mat-form-field> - <mat-form-field> - <textarea [(ngModel)]="room.description" #roomDescription matInput matTextareaAutosize matAutosizeMinRows="2" matAutosizeMaxRows="5"></textarea> - </mat-form-field> - </mat-card-content> - <mat-card-actions> - <button (click)="hideEditDialog()" mat-button color="primary"> - Leave - </button> - <button (click)="updateRoom()" mat-button color="primary"> - Update - </button> - </mat-card-actions> - </mat-card> <div *ngIf="!isLoading && !room">Error: room could not be found!</div> </div> </div>