mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
@@ -27,17 +27,20 @@ export class ChatPopoverPage implements OnInit {
|
||||
}
|
||||
close(){
|
||||
if( window.innerWidth <= 1024){
|
||||
this.popoverController.dismiss();
|
||||
//this.popoverController.dismiss();
|
||||
this.modalController.dismiss('cancel');
|
||||
}
|
||||
else{
|
||||
this.modalController.dismiss();
|
||||
this.modalController.dismiss('cancel');
|
||||
}
|
||||
}
|
||||
|
||||
//Top menu options
|
||||
//Close
|
||||
leaveGroup(){
|
||||
let body = { "roomId":this.roomId, }
|
||||
console.log('leave');
|
||||
|
||||
/* let body = { "roomId":this.roomId, }
|
||||
|
||||
this.chatService.getRoomInfo(this.roomId).subscribe(room=>{
|
||||
this.room = room['room'];
|
||||
@@ -52,10 +55,8 @@ export class ChatPopoverPage implements OnInit {
|
||||
console.log(res);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
this.popoverController.dismiss(true);
|
||||
}); */
|
||||
this.modalController.dismiss('leave');
|
||||
}
|
||||
//Delete
|
||||
deleteGroup(){
|
||||
@@ -74,8 +75,9 @@ export class ChatPopoverPage implements OnInit {
|
||||
});
|
||||
}
|
||||
});
|
||||
this.popoverController.dismiss(true);
|
||||
this.modalController.dismiss('delete');
|
||||
}
|
||||
|
||||
async openChangeGroupName(){
|
||||
const modal = await this.modalController.create({
|
||||
component: EditGroupPage,
|
||||
@@ -89,7 +91,7 @@ export class ChatPopoverPage implements OnInit {
|
||||
await modal.present();
|
||||
modal.onDidDismiss().then((res)=>{
|
||||
console.log(res.data);
|
||||
this.popoverController.dismiss(res.data);
|
||||
this.modalController.dismiss(res.data);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user