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

Adjust error-messange

Add ngSumbit
parent e3e0cc3c
Branches
Tags
No related merge requests found
<form>
<form (ngSubmit)="joinRoom(roomId.value)">
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="10px">
<mat-form-field class="input-block">
<input matInput #roomId placeholder="Room-Id" (keypress)="reset()"/>
......@@ -7,6 +7,6 @@
<mat-icon>send</mat-icon>
</button>
</div>
<mat-error *ngIf="!isExisting">Please enter a <strong>valid</strong> room-id.</mat-error>
<mat-error *ngIf="!isExisting">No room was found with this id.</mat-error>
<mat-error *ngIf="noInput">Please enter a room-id.</mat-error>
</form>
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