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

Reset error on new input

parent bafd0b1e
No related merge requests found
<form>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="10px">
<mat-form-field class="input-block">
<input matInput #roomId placeholder="Room-Id"/>
<input matInput #roomId placeholder="Room-Id" (keypress)="reset()"/>
</mat-form-field>
<button mat-fab color="primary" (click)="joinRoom(roomId.value)">
<mat-icon>send</mat-icon>
......
......@@ -44,4 +44,9 @@ export class JoinRoomComponent implements OnInit {
this.notificationService.show('No room-id entered.');
}
}
reset(): void {
this.isExisting = true;
this.noInput = false;
}
}
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