start chat from expedient bug solved

This commit is contained in:
Eudes Inácio
2022-09-26 22:09:08 +01:00
parent 2384692c1b
commit 8c5ffb657d
3 changed files with 13 additions and 6 deletions
+11 -3
View File
@@ -145,8 +145,16 @@ export class ChatPage implements OnInit {
let t = this.showDateDuration(new Date()); let t = this.showDateDuration(new Date());
this.router.events.forEach((event) => { if (this.dataService.get("newGroup")) {
if (event instanceof NavigationStart && event.url.startsWith('/home/chat')) { this.openNewGroupPage();
}
else{
this.closeAllDesktopComponents();
this.showEmptyComponent = true;
}
/* this.router.events.forEach((event) => {
if (event instanceof NavigationStart || event.url.endsWith('/home/chat')) {
if (this.dataService.get("newGroup")) { if (this.dataService.get("newGroup")) {
this.openNewGroupPage(); this.openNewGroupPage();
} }
@@ -158,7 +166,7 @@ export class ChatPage implements OnInit {
else{ else{
this.dataService.set("newGroup", false); this.dataService.set("newGroup", false);
} }
}); }); */
} }
numSequence(n: number): Array<number> { numSequence(n: number): Array<number> {
@@ -660,14 +660,13 @@ export class ExpedienteDetailPage implements OnInit {
this.newGroup(); this.newGroup();
} }
else { else {
console.log(this.task) // console.log(this.task)
console.log(this.fulltask) // console.log(this.fulltask)
this.dataService.set("newGroup", true); this.dataService.set("newGroup", true);
this.dataService.set("task", this.task); this.dataService.set("task", this.task);
this.dataService.set("newGroupName", this.task.Folio); this.dataService.set("newGroupName", this.task.Folio);
this.dataService.set("documents", this.fulltask.Documents); this.dataService.set("documents", this.fulltask.Documents);
this.router.navigate(['/home/chat']); this.router.navigate(['/home/chat']);
this.newGroup();
} }
} }