This commit is contained in:
Peter Maquiran
2021-08-13 16:07:17 +01:00
parent ce25fc8e4a
commit d15e0d1f2a
4 changed files with 80 additions and 35 deletions
@@ -311,7 +311,7 @@ export class ExpedienteDetailPage implements OnInit {
});
}
attachDocument(){
attachDocument() {
this.getDoc();
}
@@ -326,11 +326,11 @@ export class ExpedienteDetailPage implements OnInit {
}
});
await modal.present();
modal.onDidDismiss().then( async (res)=>{
modal.onDidDismiss().then( async (res)=> {
if(res){
const data = res.data;
this.documents.push(data.selected);
this.documents.forEach((element: any) =>{
this.documents.forEach((element: any) => {
let body = {
"InstanceID": this.task.InstanceID,
@@ -348,10 +348,9 @@ export class ExpedienteDetailPage implements OnInit {
this.attachmentsService.AddAttachment(body).subscribe((res)=> {
this.toastService.successMessage()
},()=> {
}, ()=> {
this.toastService.badRequest()
},()=> {
}, ()=> {
loader.remove()
});