Permalink
Browse files

Step 16.2: Use the hidden attribute in the PartiestList

  • Loading branch information...
1 parent 0be0e45 commit 0ea19f24e3620925cfe66541ad5186adf03a5151 @dotansimha dotansimha committed with DAB0mB Sep 27, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 client/imports/app/parties/parties-list.component.html
@@ -1,5 +1,5 @@
<div>
- <parties-form style="float: left"></parties-form>
+ <parties-form [hidden]="!user" style="float: left"></parties-form>
<input type="text" #searchtext placeholder="Search by Location">
<button type="button" (click)="search(searchtext.value)">Search</button>
@@ -19,7 +19,7 @@
<a [routerLink]="['/party', party._id]">{{party.name}}</a>
<p>{{party.description}}</p>
<p>{{party.location}}</p>
- <button (click)="removeParty(party)">X</button>
+ <button [hidden]="!isOwner(party)" (click)="removeParty(party)">X</button>
<div>
Who is coming:
Yes - {{party | rsvp:'yes'}}

0 comments on commit 0ea19f2

Please sign in to comment.