mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
improve
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user