fix add atachment in Expediente

This commit is contained in:
tiago.kayaya
2021-12-13 12:49:47 +01:00
parent 10c63575e7
commit 3ab9d3445d
3 changed files with 96 additions and 12 deletions
@@ -432,7 +432,7 @@ export class ExpedienteDetailPage implements OnInit {
component: SearchPage,
cssClass: 'modal-width-100-width-background modal',
componentProps: {
type: 'AccoesPresidenciais & ArquivoDespachoElect',
type: 'Correspondencia',
showSearchInput: true,
select: true,
findOnly: [8]
@@ -458,7 +458,7 @@ export class ExpedienteDetailPage implements OnInit {
body.Attachments = Attachments;
const loader = this.toastService.loading()
try {
loader.remove()
await this.attachmentsService.AddAttachment(body).toPromise()
@@ -467,11 +467,12 @@ export class ExpedienteDetailPage implements OnInit {
this.toastService._badRequest()
}
});
this.LoadTaskDetail(this.serialNumber);
}
});
setTimeout(() => {
this.LoadTaskDetail(this.serialNumber);
}, 5000);
});
}
async openExpedientActionsModal(taskAction: any, task: any) {