-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* cleanup user menu * cleanup user info component
- Loading branch information
1 parent
489a847
commit 4393f33
Showing
8 changed files
with
28 additions
and
421 deletions.
There are no files selected for viewing
18 changes: 10 additions & 8 deletions
18
projects/aca-content/src/lib/components/common/user-info/user-info.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<div mat-menu-item class="aca-user-info" [routerLink]="['/profile']" title="{{'APP.TOOLTIPS.MY_PROFILE' | translate}}"> | ||
<button class="aca-user-info-button"> | ||
<div>{{ (displayName$ | async)?.initials }}</div> | ||
</button> | ||
<div class="aca-user-info-name-email"> | ||
<div>{{ (displayName$ | async)?.firstName }}</div> | ||
<div>{{ (displayName$ | async)?.email }}</div> | ||
</div> | ||
<div mat-menu-item class="aca-user-info" [routerLink]="['/profile']" title="{{ 'APP.TOOLTIPS.MY_PROFILE' | translate }}"> | ||
<ng-container *ngIf="user$ | async as user"> | ||
<button class="aca-user-info-button"> | ||
<div>{{ user.initials || 'U' }}</div> | ||
</button> | ||
<div class="aca-user-info-details"> | ||
<div>{{ user.userName }}</div> | ||
<div>{{ user.email }}</div> | ||
</div> | ||
</ng-container> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
border: none; | ||
} | ||
|
||
&-name-email { | ||
&-details { | ||
line-height: 24px; | ||
margin-left: 10px; | ||
} | ||
|
149 changes: 0 additions & 149 deletions
149
projects/aca-content/src/lib/components/common/user-info/user-info.component.spec.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.