MOBILE-3142 chat: Show user list on a lateral modal
parent
bcb41032f5
commit
efcb7af1a9
|
@ -116,7 +116,15 @@ export class AddonModChatChatPage {
|
||||||
* Display the chat users modal.
|
* Display the chat users modal.
|
||||||
*/
|
*/
|
||||||
showChatUsers(): void {
|
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) => {
|
modal.onDidDismiss((data) => {
|
||||||
if (data && data.talkTo) {
|
if (data && data.talkTo) {
|
||||||
this.newMessage = `To ${data.talkTo}: `;
|
this.newMessage = `To ${data.talkTo}: `;
|
||||||
|
@ -125,7 +133,10 @@ export class AddonModChatChatPage {
|
||||||
this.sendMessage('', data.beepTo);
|
this.sendMessage('', data.beepTo);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
modal.present();
|
|
||||||
|
modal.present({
|
||||||
|
ev: event
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue