diff options
Diffstat (limited to 'ufund-ui/src/app/app.component.html')
| -rw-r--r-- | ufund-ui/src/app/app.component.html | 12 | 
1 files changed, 2 insertions, 10 deletions
diff --git a/ufund-ui/src/app/app.component.html b/ufund-ui/src/app/app.component.html index b41a225..959eada 100644 --- a/ufund-ui/src/app/app.component.html +++ b/ufund-ui/src/app/app.component.html @@ -1,11 +1,3 @@ -<div class="toast" #toastdiv> -<!--    <span{{(toast | async).message}}</span>--> -<!--    <a *ngIf="toast.action" (click)="toast.action.onAction()">{{toast.action.label}}</a>--> -<!--    <button (click)="toastdiv.classList.remove('active')">--> -<!--        <span class="icon">close</span>--> -<!--    </button>--> -</div> -  <div id="header">      <div>          <a routerLink="/"> @@ -17,8 +9,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>  | 
