implement change group name

This commit is contained in:
tiago.kayaya
2021-01-27 11:23:57 +01:00
parent e7621c8e3d
commit d12a378836
13 changed files with 480 additions and 33 deletions
@@ -106,30 +106,6 @@ export class GroupMessagesPage implements OnInit {
this.message = "";
}
async actionSheet() {
const actionSheet = await this.actionSheetController.create({
cssClass: 'my-custom-class',
buttons: [{
text: 'Sair do grupo',
handler: () => {
console.log('Delete clicked');
}
}, {
text: 'Alterar nome do grupo',
handler: () => {
console.log('Share clicked');
}
}, {
text: 'Apagar o grupo',
handler: () => {
console.log('Play clicked');
}
},
]
});
await actionSheet.present();
}
async openOptions(ev: any) {
const popover = await this.popoverController.create({
component: ChatPopoverPage,
@@ -143,6 +119,7 @@ export class GroupMessagesPage implements OnInit {
await popover.present();
popover.onDidDismiss().then(res=>{
if(res.data){
this.doRefresh();
this.modalController.dismiss();
};
@@ -182,5 +159,30 @@ export class GroupMessagesPage implements OnInit {
});
}
/* async actionSheet() {
const actionSheet = await this.actionSheetController.create({
cssClass: 'my-custom-class',
buttons: [{
text: 'Sair do grupo',
handler: () => {
console.log('Delete clicked');
}
}, {
text: 'Alterar nome do grupo1',
handler: () => {
console.log('Alterar nome do grupo');
this.openChangeGroupName()
}
}, {
text: 'Apagar o grupo',
handler: () => {
console.log('Play clicked');
}
},
]
});
await actionSheet.present();
}
*/
}