mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Fix
This commit is contained in:
@@ -76,7 +76,7 @@ export class DelegarPage implements OnInit {
|
||||
}
|
||||
|
||||
close() {
|
||||
this.modalController.dismiss(null);
|
||||
this.modalController.dismiss('close');
|
||||
}
|
||||
|
||||
cancelTask() {
|
||||
@@ -100,13 +100,20 @@ export class DelegarPage implements OnInit {
|
||||
"DelegatedUserEmail": this.taskParticipants[0].EmailAddress,
|
||||
}
|
||||
console.log(body);
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
this.processes.DelegateTask(body).subscribe(res=>{
|
||||
|
||||
console.log(res);
|
||||
this.toastService.successMessage('Processo delegado')
|
||||
this.close();
|
||||
},
|
||||
(error)=>{
|
||||
this.toastService.badRequest("Processo não delegado")
|
||||
},
|
||||
()=>{
|
||||
loader.remove()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user