Commit 2b56ca33 authored by Tom Käsler's avatar Tom Käsler

Merge branch '412-deleting-a-session-with-no-description-crashes-app' into 'master'

Check if session description exists in edit dialog

Closes #412

See merge request !403
parents 606c210d 1211d6d5
Pipeline #30369 passed with stages
in 8 minutes and 31 seconds
......@@ -5,14 +5,14 @@
<mat-form-field class="input-block">
<input [(ngModel)]="editRoom.name" matInput placeholder="{{ 'session.session-name' | translate}}"
name="room-name" maxlength="20"/>
<mat-hint align="end">{{editRoom.name.length }} / 20</mat-hint>
<mat-hint align="end">{{ editRoom.name.length }} / 20</mat-hint>
</mat-form-field>
<mat-form-field class="input-block">
<textarea [(ngModel)]="editRoom.description" matInput matTextareaAutosize
matAutosizeMinRows="2" matAutosizeMaxRows="5" maxlength="255"
placeholder="{{ 'session.description' | translate}}" name="description">
</textarea>
<mat-hint align="end">{{editRoom.description.length }} / 255</mat-hint>
<mat-hint align="end">{{ editRoom.description ? editRoom.description.length : 0 }} / 255</mat-hint>
</mat-form-field>
<div fxLayoutAlign="center center">
<button mat-raised-button class="delete" (click)="openDeleteRoomDialog()">
......
......@@ -3,7 +3,7 @@
}
.delete {
margin-bottom: 20px;
margin: 20px 0 20px 0;
min-width: 220px;
background-color: var(--red);
color: var(--on-secondary);
......
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