diff options
Diffstat (limited to 'ufund-ui/src/app/app.component.html')
| -rw-r--r-- | ufund-ui/src/app/app.component.html | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ufund-ui/src/app/app.component.html b/ufund-ui/src/app/app.component.html index b41a225..89075e1 100644 --- a/ufund-ui/src/app/app.component.html +++ b/ufund-ui/src/app/app.component.html @@ -17,8 +17,8 @@          <a routerLink="/cupboard">Cupboard</a>          <a routerLink="/basket">Basket</a>  <!--        <span>{{currentUser$ | async}}</span>--> -        <button *ngIf="currentUser$.value != 'Logged out.'" onclick="location.href='/';"> Log Out</button> -        <button *ngIf="currentUser$.value == 'Logged out.'" routerLink="/login"> Log In</button> +        <button *ngIf="currentUser | async" (click)="logout()"> Log Out</button> +        <button *ngIf="!(currentUser | async)" (click)="login()"> Log In</button>      </div>  </div>  | 
