|
5 | 5 | - we arrived from the guard after trying to access a protected route even though we are connected
|
6 | 6 | -->
|
7 | 7 | <div
|
8 |
| - *ngIf="(config.guardProtectedRoutesUntilEmailIsVerified && !user.emailVerified) || (authProcess.emailConfirmationSent && !user.emailVerified); else signedInUser" |
| 8 | + *ngIf="isEmailConfirmationScreenVisible(user)" |
9 | 9 | fxLayout="row" fxLayoutAlign="center center">
|
10 | 10 | <ngx-auth-firebaseui-email-confirmation
|
11 | 11 | (signOut)="signOut()"
|
|
21 | 21 | </ngx-auth-firebaseui-email-confirmation>
|
22 | 22 | </div>
|
23 | 23 |
|
24 |
| - <ng-template #signedInUser> |
25 |
| - <div class="signed-in-container" fxLayout="column" fxLayoutAlign="center center"> |
26 |
| - <img *ngIf="user?.photoURL; else noPhoto" [src]="user?.photoURL" class="account-circle"> |
27 |
| - <ng-template #noPhoto> |
28 |
| - <mat-icon class="account-circle">account_circle</mat-icon> |
29 |
| - </ng-template> |
30 |
| - <div class="user-display-name mat-title">{{ user?.displayName }}</div> |
31 |
| - <div class="user-email mat-body-2">{{ user?.email }}</div> |
32 |
| - <div class="actions"> |
33 |
| - <mat-progress-bar *ngIf="isLoading" mode="indeterminate"></mat-progress-bar> |
34 |
| - <a [routerLink]="goBackURL" class="go-back-button action-button" color="primary" |
35 |
| - mat-stroked-button>{{ verifyEmailGoBackText }}</a> |
36 |
| - <button (click)="signOut()" class="sign-out-button action-button" color="warn" |
37 |
| - mat-stroked-button>{{ signOutText }}</button> |
38 |
| - </div> |
| 24 | + <div *ngIf="isUserProfileScreenVisible(user)" class="signed-in-container" fxLayout="column" fxLayoutAlign="center center" *ngIf=""> |
| 25 | + <img *ngIf="user?.photoURL; else noPhoto" [src]="user?.photoURL" class="account-circle"> |
| 26 | + <ng-template #noPhoto> |
| 27 | + <mat-icon class="account-circle">account_circle</mat-icon> |
| 28 | + </ng-template> |
| 29 | + <div class="user-display-name mat-title">{{ user?.displayName }}</div> |
| 30 | + <div class="user-email mat-body-2">{{ user?.email }}</div> |
| 31 | + <div class="actions"> |
| 32 | + <mat-progress-bar *ngIf="isLoading" mode="indeterminate"></mat-progress-bar> |
| 33 | + <a [routerLink]="goBackURL" class="go-back-button action-button" color="primary" |
| 34 | + mat-stroked-button>{{ verifyEmailGoBackText }}</a> |
| 35 | + <button (click)="signOut()" class="sign-out-button action-button" color="warn" |
| 36 | + mat-stroked-button>{{ signOutText }}</button> |
39 | 37 | </div>
|
40 |
| - </ng-template> |
| 38 | + </div> |
41 | 39 |
|
42 | 40 | </ng-container>
|
43 | 41 |
|
|
0 commit comments