Skip to content
Snippets Groups Projects
Commit 1211d6d5 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Check if session description exists in edit dialog

parent 76ed70ce
1 merge request!403Check if session description exists in edit dialog
Pipeline #30366 passed with stages
in 9 minutes and 26 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);
......
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