Permalink
Browse files

Step 12.10: Add showAttachments method

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent 7f3694f commit 3194ac2ef8da6e7d31621873eb8637cfa99af94c
Showing with 15 additions and 0 deletions.
  1. +15 −0 src/pages/messages/messages.ts
@@ -7,6 +7,7 @@ import * as moment from 'moment';
import * as _ from 'lodash';
import { MessagesOptionsComponent } from './messages-options';
import { Subscription, Observable, Subscriber } from 'rxjs';
import { MessagesAttachmentsComponent } from './messages-attachments';
@Component({
selector: 'messages-page',
@@ -211,4 +212,18 @@ export class MessagesPage implements OnInit, OnDestroy {
this.message = '';
});
}
showAttachments(): void {
const popover = this.popoverCtrl.create(MessagesAttachmentsComponent, {
chat: this.selectedChat
}, {
cssClass: 'attachments-popover'
});
popover.onDidDismiss((params) => {
// TODO: Handle result
});
popover.present();
}
}

0 comments on commit 3194ac2

Please sign in to comment.