walljm 8badd5dfc1 FEATURE: Functioning search is here.
* added saving of state.
 * moved all state into the user profile, this will allow us to load state after a user logs in when we add user accounts later.
2016-12-27 21:10:00 -05:00

27 lines
1.4 KiB
HTML

<ion-header>
<ion-navbar>
<button menuToggle large>
<ion-icon name="menu"></ion-icon>
</button>
<ion-searchbar (search)="getQuery($event)" (input)="setQuery($event)" [showCancelButton]="true"></ion-searchbar>
</ion-navbar>
</ion-header>
<ion-content padding class="search-card">
<ion-card *ngFor="let item of user.items">
<passage *ngIf="isPassage(item.type)" [cardItem]="item" [item]="item.data" (onClose)="removeItem($event)" [dict]="item.dict" (onStrongsClicked)="getItems($event)"></passage>
<strongs *ngIf="isStrongs(item.type)" [cardItem]="item" [item]="item.data" (onClose)="removeItem($event)" (onPassageClicked)="getItems($event)"></strongs>
<words *ngIf="isWords(item.type)" [cardItem]="item" [item]="item.data" (onClose)="removeItem($event)" (onPassageClicked)="getItems($event)"></words>
<button ion-button icon-left clear small (click)="removeItem(item)">
<ion-icon name="close-circle"></ion-icon>
<div>Close</div>
</button>
<button ion-button icon-left clear small>
<ion-icon name="text"></ion-icon>
<div>4 Notes</div>
</button>
<button ion-button icon-left clear small>
<ion-icon name="text"></ion-icon>
<div>8 Tags</div>
</button>
</ion-card>
</ion-content>