Skip to content
Snippets Groups Projects
Commit a363fd39 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #17671 TIME 0:05 call downloadProof function before deletion

parent 570db866
No related branches found
No related tags found
No related merge requests found
......@@ -557,16 +557,16 @@ export class SearchComponent implements OnInit {
},
{
text: this.translate.instant('lang.delete'),
handler: (res: any) => {
handler: async (res: any) => {
this.physicalPurge = !this.functionsService.empty(res) ? true : false;
await this.downloadProof(item, '');
this.http.delete(`../rest/documents/${item.id}?physicalPurge=${this.physicalPurge}`).pipe(
tap(async (data: any) => {
this.loadingController.create({
message: this.translate.instant('lang.processing'),
spinner: 'dots'
}).then(async (load: HTMLIonLoadingElement) => {
}).then((load: HTMLIonLoadingElement) => {
load.present();
await this.downloadProof(item, '');
this.search();
load.dismiss();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment