This commit is contained in:
Peter Maquiran
2021-08-13 16:39:28 +01:00
parent 9653efd983
commit 8e2209ac72
12 changed files with 206 additions and 174 deletions
@@ -399,7 +399,7 @@ export class ExpedienteDetailPage implements OnInit {
});
}
async distartExpedientModal(body:any){
async distartExpedientModal(body:any) {
const modal = await this.modalController.create({
component: DiscartExpedientModalPage,
componentProps: {
@@ -441,11 +441,11 @@ export class ExpedienteDetailPage implements OnInit {
}
}
else{
if(res['data']== 'Yes'){
if(res['data']== 'Yes') {
const loader = this.toastService.loading()
try {
await this.processes.CompleteTask(body).toPromise();
await this.expedientesService.CompleteTask(body).toPromise();
//this.toastService.successMessage('Processo descartado');
this.goBack();
} catch (error) {
@@ -455,7 +455,7 @@ export class ExpedienteDetailPage implements OnInit {
}
}
else if(res['data'] == 'No'){
else if(res['data'] == 'No') {
console.log('Update');
const loader = this.toastService.loading()
try {