From 150b4f1cae4e31d56fbdc27e38b8ee0bc51d03c0 Mon Sep 17 00:00:00 2001 From: Lukas Kimpel <lukas.kimpel@mni.thm.de> Date: Tue, 13 Mar 2018 09:59:53 +0100 Subject: [PATCH] Update button to not submit the form --- src/app/login/login.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index 7d59af9f2..0005f0e6e 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -14,5 +14,5 @@ <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</button> + <button mat-raised-button *ngIf="role === UserRole.PARTICIPANT" (click)="guestLogin()" type="button">Login as guest</button> </form> -- GitLab