From 31076b807535607df01610b8630f8feb3af52da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Sun, 11 Mar 2018 19:14:44 +0100 Subject: [PATCH] Adjust error-messange Add ngSumbit --- src/app/join-room/join-room.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/join-room/join-room.component.html b/src/app/join-room/join-room.component.html index b83074bb6..136a418b3 100644 --- a/src/app/join-room/join-room.component.html +++ b/src/app/join-room/join-room.component.html @@ -1,4 +1,4 @@ -<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> -- GitLab