Skip to content

Commit

Permalink
Refreshing the list after export (#1359)
Browse files Browse the repository at this point in the history
  • Loading branch information
MMwandigha committed Sep 17, 2024
1 parent 29faca6 commit 996b3a5
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,14 @@ export class DataExportComponent implements OnInit {
exportAll() {
this.pollingService
.startExport({ send_to_hdx: false, include_hxl: false, send_to_browser: true })
.subscribe();
.subscribe({
next: () => {
this.loadExportJobs();
},
error: (err) => {
console.error('Export failed: ', err);
},
});
}

selectAll(form: FormInterface) {
Expand Down Expand Up @@ -129,7 +136,14 @@ export class DataExportComponent implements OnInit {
});
this.pollingService
.startExport({ fields, send_to_hdx: false, include_hxl: false, send_to_browser: true })
.subscribe();
.subscribe({
next: () => {
this.loadExportJobs();
},
error: (err) => {
console.error('Export failed: ', err);
},
});
}

selectFields() {
Expand Down

0 comments on commit 996b3a5

Please sign in to comment.