core/user/user-details-drawer/user-details-drawer.component.ts
host | { |
selector | c8y-user-details-drawer |
templateUrl | ./user-details-drawer.component.html |
Properties |
|
Methods |
constructor(appState: AppStateService, headerService: HeaderService)
|
|||||||||
Parameters :
|
close |
close()
|
Returns :
void
|
Public appState |
Type : AppStateService
|
Public headerService |
Type : HeaderService
|
<div class="c8y-right-drawer__header separator-bottom">
<button type="button" class="close" [attr.tabindex]="(headerService.rightDrawerOpen$ | async) ? '0' : '-1'" title="{{ 'Close' | translate }}" (click)="close()">
×
</button>
<div class="d-flex a-i-center">
<div class="user-dot">{{ appState.currentUser | async | userNameInitials }}</div>
<div class="min-width-0">
<p
*ngIf="appState.currentUser | async as currentUser"
class="text-truncate text-medium text-16"
title="{{ currentUser | shortenUserName }}"
>
{{ currentUser | shortenUserName }}
</p>
<small
*ngIf="appState.currentUser | async | userRolesList as userRoles"
[title]="userRoles"
class="text-truncate"
>
{{ userRoles }}
</small>
</div>
</div>
</div>