mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
fix add atachment in Expediente
This commit is contained in:
+6
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user