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 @@ ...@@ -3,17 +3,16 @@
<mat-form-field class="input-block"> <mat-form-field class="input-block">
<input matInput #userEmail placeholder="E-mail" [formControl]="usernameFormControl" [errorStateMatcher]="matcher" <input matInput #userEmail placeholder="E-mail" [formControl]="usernameFormControl" [errorStateMatcher]="matcher"
name="username"/> 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>
<mat-error *ngIf="usernameFormControl.hasError('required')">E-mail is <strong>required</strong>.</mat-error> <mat-error *ngIf="usernameFormControl.hasError('required')">E-mail is <strong>required</strong>.</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field class="input-block"> <mat-form-field class="input-block">
<input matInput #userPassword type="password" placeholder="Password" [formControl]="passwordFormControl" <input matInput #userPassword type="password" placeholder="Password" [formControl]="passwordFormControl"
[errorStateMatcher]="matcher" name="password"/> [errorStateMatcher]="matcher" name="password"/>
<mat-error *ngIf="passwordFormControl.hasError('required')">Password is <strong>required</strong>.</mat-error> <mat-error *ngIf="passwordFormControl.hasError('required')">Password is <strong>required</strong>.</mat-error>
</mat-form-field> </mat-form-field>
<button mat-raised-button color="primary" type="submit">Login</button> <button mat-raised-button color="primary" type="submit">Login</button>
<button mat-raised-button *ngIf="role === UserRole.PARTICIPANT" (click)="guestLogin()">Login as <button mat-raised-button *ngIf="role === UserRole.PARTICIPANT" (click)="guestLogin()">Login as
guest guest
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<mat-icon>close</mat-icon> <mat-icon>close</mat-icon>
</button> </button>
</mat-form-field> </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> </div>
</form> </form>
...@@ -28,6 +28,7 @@ export class RoomCreationComponent implements OnInit { ...@@ -28,6 +28,7 @@ export class RoomCreationComponent implements OnInit {
ngOnInit() { ngOnInit() {
} }
resetEmptyInputs(): void { resetEmptyInputs(): void {
this.emptyInputs = false; 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