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 @@ ...@@ -5,14 +5,14 @@
<mat-form-field class="input-block"> <mat-form-field class="input-block">
<input [(ngModel)]="editRoom.name" matInput placeholder="{{ 'session.session-name' | translate}}" <input [(ngModel)]="editRoom.name" matInput placeholder="{{ 'session.session-name' | translate}}"
name="room-name" maxlength="20"/> 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>
<mat-form-field class="input-block"> <mat-form-field class="input-block">
<textarea [(ngModel)]="editRoom.description" matInput matTextareaAutosize <textarea [(ngModel)]="editRoom.description" matInput matTextareaAutosize
matAutosizeMinRows="2" matAutosizeMaxRows="5" maxlength="255" matAutosizeMinRows="2" matAutosizeMaxRows="5" maxlength="255"
placeholder="{{ 'session.description' | translate}}" name="description"> placeholder="{{ 'session.description' | translate}}" name="description">
</textarea> </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> </mat-form-field>
<div fxLayoutAlign="center center"> <div fxLayoutAlign="center center">
<button mat-raised-button class="delete" (click)="openDeleteRoomDialog()"> <button mat-raised-button class="delete" (click)="openDeleteRoomDialog()">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
} }
.delete { .delete {
margin-bottom: 20px; margin: 20px 0 20px 0;
min-width: 220px; min-width: 220px;
background-color: var(--red); background-color: var(--red);
color: var(--on-secondary); 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