This commit is contained in:
Peter Maquiran
2021-07-28 14:18:02 +01:00
parent 999da281e8
commit 6da79420b4
8 changed files with 76 additions and 28 deletions
+4 -3
View File
@@ -193,7 +193,7 @@ export class AgendaPage implements OnInit {
this.updateEventListBox()
}, 1000)
}, 2000)
}
@@ -214,8 +214,9 @@ export class AgendaPage implements OnInit {
}
if ( realoadCounter != 0) {
this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
setTimeout(()=>{
this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
}, 1000)
}
realoadCounter++;
}
@@ -111,14 +111,16 @@ export class ViewEventPage implements OnInit {
if(this.isModal) {
this.close()
} else {
this.activatedRoute.paramMap.subscribe(params => {
if(params["params"].caller == 'expediente'){
window.history.back();
}
else{
this.router.navigate(['/home',params["params"].caller]);
}
});
// this.activatedRoute.paramMap.subscribe(params => {
// if(params["params"].caller == 'expediente'){
// window.history.back();
// }
// else{
// this.router.navigate(['/home',params["params"].caller]);
// }
// });
this.location.back();
}
}
@@ -270,7 +270,7 @@ export class ExpedienteDetailPage implements OnInit {
const loader = this.toastService.loading()
try {
await this.processes.CompleteTask(otherbody).toPromise()
await this.processes.CompleteTask(otherbody)
this.toastService.successMessage('Processo descartado');
this.goBack();
} catch (error) {