This commit is contained in:
tiago.kayaya
2021-04-21 15:14:43 +01:00
parent 75c51fd868
commit 5dc3229bb0
5 changed files with 16 additions and 19 deletions
@@ -83,7 +83,7 @@
<ion-footer>
<div class="container width-100 d-flex">
<div>
<button class="btn-no-color" (click)="openOptions()">
<button class="btn-no-color" (click)="openChatOptions()">
<ion-icon class="chat-icon-options" src="assets/icon/icons-chat-options.svg"></ion-icon>
</button>
</div>
@@ -135,7 +135,7 @@ export class GroupMessagesPage implements OnInit {
async openOptions() {
console.log('OK');
const modal = await this.modalController.create({
const modal = await this.popoverController.create({
component: ChatPopoverPage,
cssClass: 'chat-popover',
componentProps: {
@@ -147,19 +147,14 @@ export class GroupMessagesPage implements OnInit {
if(res.data == 'leave'){
this.leaveStatus = this.loggedUser.me.name + ' saiu do grupo';
}
else if(res.data == 'cancel'){
console.log('cancel');
}
console.log('OK2');
console.log(res.data);
/* if(res.data ==){
this.roomName = res.data.name.split('-').join(' ');
console.log(this.roomName);
this.getRoomInfo();
//this.modalController.dismiss();
}; */
});
}
async openChatOptions(ev: any) {
const popover = await this.popoverController.create({
component: ChatOptionsPopoverPage,