|
1 | 1 | <button *ngIf="user"
|
| 2 | + class="ngx-auth-firebaseui-avatar-button" |
2 | 3 | [matMenuTriggerFor]="posXMenu"
|
3 | 4 | [matTooltip]="user?.displayName"
|
4 | 5 | [style.background-image]="'url(' + user?.photoURL + ')'"
|
|
8 | 9 | <span *ngIf="!user?.photoURL">{{displayNameInitials || ''}}</span>
|
9 | 10 | </button>
|
10 | 11 |
|
11 |
| -<mat-menu #posXMenu="matMenu" class="before" xPosition="before"> |
12 |
| - <div fxLayout="row" fxLayout.xs="column" style="padding-left: 10px; padding-right: 10px"> |
| 12 | +<mat-menu #posXMenu="matMenu" class="before ngx-auth-firebaseui-avatar-menu" xPosition="before" > |
| 13 | + <div fxLayout="row" fxLayout.xs="column" style="padding-left: 10px; padding-right: 10px" [ngStyle]="{ 'padding-top.px': layout === 'default' ? 0 : 10 }"> |
13 | 14 | <button [style.background-image]="'url(' + user?.photoURL + ')'"
|
14 | 15 | mat-fab
|
15 |
| - style="background-size: cover"> |
| 16 | + style="background-size: cover" |
| 17 | + *ngIf="layout === 'default'"> |
16 | 18 | <span *ngIf="!user?.photoURL">{{displayNameInitials || ''}}</span>
|
17 | 19 | </button>
|
18 | 20 | <div fxLayout="column" style="padding-left: 10px; padding-right: 10px">
|
|
21 | 23 | </div>
|
22 | 24 | </div>
|
23 | 25 |
|
24 |
| - <div fxFlex="100" fxLayout="column"> |
| 26 | + <div fxFlex="100" fxLayout="column" [ngStyle]="{ 'padding-bottom.px': layout === 'default' ? 0 : 10 } "> |
25 | 27 | <div *ngFor="let menuItem of links" class="links-menu">
|
26 | 28 | <button (click)="menuItem?.callback()" mat-menu-item>
|
27 | 29 | <mat-icon>{{menuItem?.icon}}</mat-icon>
|
28 | 30 | {{menuItem?.text}}</button>
|
29 | 31 | </div>
|
30 |
| - <button (click)="openProfile()" color="primary" fxLayoutAlign="center" mat-raised-button>Profile |
| 32 | + <button *ngIf="canViewAccount" (click)="openProfile()" color="primary" fxLayoutAlign="center" mat-raised-button>{{ textProfile }} |
31 | 33 | </button>
|
32 |
| - <button (click)="signOut()" *ngIf="canLogout" color="warn" fxLayoutAlign="center" mat-raised-button>Sign Out |
| 34 | + <button (click)="signOut()" *ngIf="canLogout" color="warn" fxLayoutAlign="center" mat-raised-button>{{ textSignOut }} |
33 | 35 | </button>
|
34 | 36 | </div>
|
35 | 37 | </mat-menu>
|
0 commit comments