This commit is contained in:
Peter Maquiran
2022-09-28 16:33:13 +01:00
parent c43f7b458a
commit f2b4128836
7 changed files with 33 additions and 50 deletions
@@ -48,23 +48,14 @@ export class NewGroupPage implements OnInit{
}
ngOnInit() {
this.router.events.forEach((event) => {
if (event instanceof NavigationStart && event.url.startsWith('/home/chat')) {
if (this.dataService.get("newGroup")) {
this.task = this.dataService.get("task");
this.groupName = this.task.Folio;
this.documents = this.dataService.get("documents");
}
}
else{
this.dataService.set("newGroup", false);
}
});
this.task = this.dataService.get("task");
this.groupName = this.task.Folio;
this.documents = this.dataService.get("documents");
console.log(this.dataService.data);
this.dataService.set("newGroup", false);
}
_ionChange(event){
_ionChange(event) {
this.showDuration = event.detail.checked;
@@ -77,7 +68,7 @@ export class NewGroupPage implements OnInit{
}
close() {
this.dataService.set("newGroup", false);
this.addGroupMessage.emit();
}