Skip to content

Commit

Permalink
Step 10.6: Update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and darkbasic committed Oct 16, 2017
1 parent 44bf12a commit 8c8dfd5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/pages/chats/new-chat.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
<ion-header>
<ion-toolbar color="whatsapp">
<ion-toolbar *ngIf="searching" color="whatsapp">
<ion-searchbar
autofocus
class="seach-bar"
color="whatsapp"
[showCancelButton]="true"
(ionInput)="updateSubscription($event.target.value); searching = true;"
(ionClear)="updateSubscription(undefined); searching = false;">
</ion-searchbar>
</ion-toolbar>

<ion-toolbar *ngIf="!searching" color="whatsapp">
<ion-title>New Chat</ion-title>

<ion-buttons left>
<button ion-button class="dismiss-button" (click)="viewCtrl.dismiss()"><ion-icon name="close"></ion-icon></button>
</ion-buttons>

<ion-buttons end>
<button ion-button class="search-button"><ion-icon name="search"></ion-icon></button>
<button ion-button class="search-button" (click)="searching = true"><ion-icon name="search"></ion-icon></button>
</ion-buttons>
</ion-toolbar>
</ion-header>
Expand Down

0 comments on commit 8c8dfd5

Please sign in to comment.