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

Remove old unused code

parent 3908bc23
1 merge request!75Resolve "content creation (text) followup"
Pipeline #13417 passed with stage
in 31 seconds
......@@ -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>
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