Permalink
Browse files

Step 19.16: Replace login buttons with custom buttons

  • Loading branch information...
1 parent 987ad40 commit 3080aaf89e3759ad51d8da17ca536ccc970afe63 @dotansimha dotansimha committed with DAB0mB Sep 27, 2016
Showing with 8 additions and 1 deletion.
  1. +8 −1 client/imports/app/app.component.html
@@ -1,6 +1,13 @@
<md-toolbar color="primary">
<a routerLink="/" class="toolbar-title">Socially2</a>
<span class="fill-remaining-space"></span>
- <login-buttons></login-buttons>
+ <div [hidden]="user">
+ <a md-button [routerLink]="['/login']" >Login</a>
+ <a md-button [routerLink]="['/signup']">Sign up</a>
+ </div>
+ <div [hidden]="!user">
+ <span>{{ user | displayName }}</span>
+ <button md-button (click)="logout()">Logout</button>
+ </div>
</md-toolbar>
<router-outlet></router-outlet>

0 comments on commit 3080aaf

Please sign in to comment.