Permalink
Browse files

Step 12.10: Add showAttachments method

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent fc1c91d commit b1a3045a597e425706a658f452d5de342776c2ef
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 { _ } from 'meteor/underscore';
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 b1a3045

Please sign in to comment.