Closed export prject window without waiting

This commit is contained in:
Rajnikant Lodhi 2022-06-22 14:08:26 +05:30
parent 335ea23b6b
commit b032c88467

View File

@ -68,6 +68,7 @@ export class ExportPortableProjectComponent implements OnInit {
exportPortableProject() { exportPortableProject() {
this.isExport = true; this.isExport = true;
this.dialogRef.close();
this.export_project_form.value.compression = this.export_project_form.value.compression.value ?? 'zstd'; this.export_project_form.value.compression = this.export_project_form.value.compression.value ?? 'zstd';
const object = this.projectService const object = this.projectService
.exportPortableProject(this.server, this.project.project_id, this.export_project_form.value) .exportPortableProject(this.server, this.project.project_id, this.export_project_form.value)
@ -82,11 +83,9 @@ export class ExportPortableProjectComponent implements OnInit {
document.body.removeChild(link); document.body.removeChild(link);
console.log(document.cookie.search(this.fileName)); console.log(document.cookie.search(this.fileName));
this.isExport = false; this.isExport = false;
setTimeout(() => { // setTimeout(() => {
this.dialogRef.close(); // this.dialogRef.close();
}, 9000); // }, 8000);
}); });
} }
} }