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
1 merge request!70Resolve "Adjust join room when room is not existing"
<form> <form (ngSubmit)="joinRoom(roomId.value)">
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="10px"> <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="10px">
<mat-form-field class="input-block"> <mat-form-field class="input-block">
<input matInput #roomId placeholder="Room-Id" (keypress)="reset()"/> <input matInput #roomId placeholder="Room-Id" (keypress)="reset()"/>
...@@ -7,6 +7,6 @@ ...@@ -7,6 +7,6 @@
<mat-icon>send</mat-icon> <mat-icon>send</mat-icon>
</button> </button>
</div> </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> <mat-error *ngIf="noInput">Please enter a room-id.</mat-error>
</form> </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