aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/app.component.html
blob: f69769585638782d40d0af5f4d121429bdf53b9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div id="header">
    <div>
        <a routerLink="/">
            <h1>Jelly Solutions</h1>
        </a>
    </div>
    <div>
        <a *ngIf="(currentUser | async)?.type === userType.MANAGER" routerLink="/dashboard">Dashboard</a>
        <a routerLink="/cupboard">Cupboard</a>
        <a *ngIf="(currentUser | async)?.type === userType.HELPER" routerLink="/basket">Basket</a>
<!--        <span>{{currentUser$ | async}}</span>-->
        <button *ngIf="currentUser | async" (click)="logout()"> Log Out</button>
        <button *ngIf="!(currentUser | async)" (click)="login()"> Log In</button>
    </div>
</div>

<router-outlet />