mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve
This commit is contained in:
+4
-4
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user