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:
+5
-6
@@ -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()
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user