MOBILE-3142 chat: Show user list on a lateral modal

main
Pau Ferrer Ocaña 2019-09-10 09:09:23 +02:00
parent bcb41032f5
commit efcb7af1a9
1 changed files with 13 additions and 2 deletions

View File

@ -116,7 +116,15 @@ export class AddonModChatChatPage {
* Display the chat users modal.
*/
showChatUsers(): void {
const modal = this.modalCtrl.create('AddonModChatUsersPage', {sessionId: this.sessionId});
// Create the toc modal.
const modal = this.modalCtrl.create('AddonModChatUsersPage', {
sessionId: this.sessionId
}, { cssClass: 'core-modal-lateral',
showBackdrop: true,
enableBackdropDismiss: true,
enterAnimation: 'core-modal-lateral-transition',
leaveAnimation: 'core-modal-lateral-transition' });
modal.onDidDismiss((data) => {
if (data && data.talkTo) {
this.newMessage = `To ${data.talkTo}: `;
@ -125,7 +133,10 @@ export class AddonModChatChatPage {
this.sendMessage('', data.beepTo);
}
});
modal.present();
modal.present({
ev: event
});
}
/**