From 0d1d9b23b7e77477df88bd9988950064fa8dd12d Mon Sep 17 00:00:00 2001 From: Thomas Lenz <Thomas.Lenz@mni.thm.de> Date: Fri, 9 Mar 2018 19:34:24 +0100 Subject: [PATCH] Reformat code --- src/app/login/login.component.html | 5 ++--- src/app/room-creation/room-creation.component.html | 3 ++- src/app/room-creation/room-creation.component.ts | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index 9a4d84a58..6a4876b57 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -3,17 +3,16 @@ <mat-form-field class="input-block"> <input matInput #userEmail placeholder="E-mail" [formControl]="usernameFormControl" [errorStateMatcher]="matcher" name="username"/> - <mat-error *ngIf="usernameFormControl.hasError('email') && !usernameFormControl.hasError('required')">Please enter a <strong>valid</strong> e-mail address. + <mat-error *ngIf="usernameFormControl.hasError('email') && !usernameFormControl.hasError('required')">Please enter a + <strong>valid</strong> e-mail address. </mat-error> <mat-error *ngIf="usernameFormControl.hasError('required')">E-mail is <strong>required</strong>.</mat-error> </mat-form-field> - <mat-form-field class="input-block"> <input matInput #userPassword type="password" placeholder="Password" [formControl]="passwordFormControl" [errorStateMatcher]="matcher" name="password"/> <mat-error *ngIf="passwordFormControl.hasError('required')">Password is <strong>required</strong>.</mat-error> </mat-form-field> - <button mat-raised-button color="primary" type="submit">Login</button> <button mat-raised-button *ngIf="role === UserRole.PARTICIPANT" (click)="guestLogin()">Login as guest diff --git a/src/app/room-creation/room-creation.component.html b/src/app/room-creation/room-creation.component.html index ce4e95097..75666e536 100644 --- a/src/app/room-creation/room-creation.component.html +++ b/src/app/room-creation/room-creation.component.html @@ -22,6 +22,7 @@ <mat-icon>close</mat-icon> </button> </mat-form-field> - <button mat-raised-button color="primary" type="submit">Create room</button> + <button mat-raised-button color="primary" type="submit">Create room + </button> </div> </form> diff --git a/src/app/room-creation/room-creation.component.ts b/src/app/room-creation/room-creation.component.ts index cc79c96ef..ffb25d98e 100644 --- a/src/app/room-creation/room-creation.component.ts +++ b/src/app/room-creation/room-creation.component.ts @@ -28,6 +28,7 @@ export class RoomCreationComponent implements OnInit { ngOnInit() { } + resetEmptyInputs(): void { this.emptyInputs = false; } -- GitLab