Skip to content
Snippets Groups Projects
Commit 0d1d9b23 authored by Thomas Lenz's avatar Thomas Lenz
Browse files

Reformat code

parent b677f87a
No related merge requests found
......@@ -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
......
......@@ -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>
......@@ -28,6 +28,7 @@ export class RoomCreationComponent implements OnInit {
ngOnInit() {
}
resetEmptyInputs(): void {
this.emptyInputs = 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