Skip to content
Snippets Groups Projects
Unverified Commit 83f9fe10 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #333 from HumanBrainProject/bugfix/userIcon

bugfix: logged in user place holder
parents eb8fc9d9 b4a99d55
No related branches found
No related tags found
No related merge requests found
......@@ -94,9 +94,7 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit {
public sidePanelOpen$: Observable<boolean>
get toggleMessage(){
return this.constantsService.toggleMessage
}
public toggleMessage = this.constantsService.toggleMessage
constructor(
private store: Store<ViewerStateInterface>,
......
......@@ -9,10 +9,13 @@
mat-icon-button
[matMenuTriggerFor]="dropdownMenu"
color="primary">
<i *ngIf="!(user$ | async) as user; else userInitialTempl" class="fas fa-user"></i>
<ng-template #userInitialTempl>
<ng-template [ngIf]="user$ | async" [ngIfElse]="notLoggedInTmpl" let-user="ngIf">
{{ (user && user.name || 'Unnamed User').slice(0,1) }}
</ng-template>
<ng-template #notLoggedInTmpl>
<i class="fas fa-user"></i>
</ng-template>
</button>
</div>
</div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment