Spaces:
Running
Running
Update flare-ui/src/app/components/login/login.component.ts
Browse files
flare-ui/src/app/components/login/login.component.ts
CHANGED
@@ -64,12 +64,10 @@ import { AuthService } from '../../services/auth.service';
|
|
64 |
<mat-error>Password is required</mat-error>
|
65 |
</mat-form-field>
|
66 |
|
67 |
-
|
68 |
-
<
|
69 |
-
|
70 |
-
|
71 |
-
</div>
|
72 |
-
}
|
73 |
|
74 |
<button
|
75 |
mat-raised-button
|
@@ -78,13 +76,9 @@ import { AuthService } from '../../services/auth.service';
|
|
78 |
class="full-width submit-button"
|
79 |
[disabled]="loading || !loginForm.valid"
|
80 |
>
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
} @else {
|
85 |
-
<mat-icon>login</mat-icon>
|
86 |
-
Login
|
87 |
-
}
|
88 |
</button>
|
89 |
</form>
|
90 |
</mat-card-content>
|
|
|
64 |
<mat-error>Password is required</mat-error>
|
65 |
</mat-form-field>
|
66 |
|
67 |
+
<div class="error-message" *ngIf="error">
|
68 |
+
<mat-icon>error</mat-icon>
|
69 |
+
{{ error }}
|
70 |
+
</div>
|
|
|
|
|
71 |
|
72 |
<button
|
73 |
mat-raised-button
|
|
|
76 |
class="full-width submit-button"
|
77 |
[disabled]="loading || !loginForm.valid"
|
78 |
>
|
79 |
+
<mat-spinner diameter="20" class="button-spinner" *ngIf="loading"></mat-spinner>
|
80 |
+
<mat-icon *ngIf="!loading">login</mat-icon>
|
81 |
+
{{ loading ? 'Logging in...' : 'Login' }}
|
|
|
|
|
|
|
|
|
82 |
</button>
|
83 |
</form>
|
84 |
</mat-card-content>
|