<form #logoutForm method="post" [action]="formAction" hidden style="display: none">
    <input type="hidden" name="_csrf" [value]="csrfValue"/>
</form>
<button class="user-info" ngbDropdownToggle *ngIf="isAuthenticated()">{{getUserFullname()}}</button>
<div ngbDropdownMenu *ngIf="isAuthenticated()">
	<div class="user-department">{{getOrgUnitName()}}</div>
    <a routerLink="/mydata" class="data">Данные организации</a>
    <button ngbDropdownItem class="exit" (click)="logoutForm.submit()">Выйти</button>
</div>
<button class="exit" *ngIf="!isAuthenticated()" (click)="logoutForm.submit()">Выйти</button>
