add sart chat from Parecer

This commit is contained in:
tiago.kayaya
2021-12-10 12:31:37 +01:00
parent 7a2a21ec70
commit 7c7341b34b
4 changed files with 26 additions and 23 deletions
@@ -112,18 +112,20 @@ export class RequestOptionsPage implements OnInit {
modal.onDidDismiss();
}
openNewGroupPage(){
this.router.navigate(['/home/chat']);
this.dataService.set("newGroup", true);
if( window.innerWidth < 801){
this.newGroup();
}
else{
this.dataService.set("newGroup", true);
/* this.closeAllDesktopComponents();
this.showNewGroup=true; */
}
async openNewGroupPage(){
const modal = await this.modalController.create({
component: NewGroupPage,
cssClass: 'modal modal-desktop',
componentProps: {
name: this.task.Folio,
task: this.task,
documents: this.fulltask.Documents,
},
});
await modal.present();
modal.onDidDismiss().then( () => {
this.popoverController.dismiss('close');
});
}
async newGroup(){