From 3bdf71863a89c9584270b207e345b022e4b6367b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Fri, 9 Mar 2018 16:43:24 +0100
Subject: [PATCH] Use the ngSubmit event to trigger the room creation

---
 src/app/room-creation/room-creation.component.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/room-creation/room-creation.component.html b/src/app/room-creation/room-creation.component.html
index c4c5a9cd1..d27aedc3b 100644
--- a/src/app/room-creation/room-creation.component.html
+++ b/src/app/room-creation/room-creation.component.html
@@ -1,4 +1,4 @@
-<form>
+<form (ngSubmit)="addRoom(longRoomName.value, shortRoomName.value)">
 <div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="10px">
   <mat-form-field>
     <input matInput #longRoomName class="input-block" type="text" placeholder="Name" maxlength="50"
@@ -19,7 +19,7 @@
       <mat-icon>close</mat-icon>
     </button>
   </mat-form-field>
-  <button mat-raised-button color="primary" (click)="addRoom(longRoomName.value, shortRoomName.value)">Create room
+  <button mat-raised-button color="primary" type="submit">Create room
   </button>
 </div>
 </form>
-- 
GitLab