mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-19 19:29:03 +00:00
Closed export prject window without waiting
This commit is contained in:
parent
335ea23b6b
commit
b032c88467
@ -68,6 +68,7 @@ export class ExportPortableProjectComponent implements OnInit {
|
||||
|
||||
exportPortableProject() {
|
||||
this.isExport = true;
|
||||
this.dialogRef.close();
|
||||
this.export_project_form.value.compression = this.export_project_form.value.compression.value ?? 'zstd';
|
||||
const object = this.projectService
|
||||
.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);
|
||||
console.log(document.cookie.search(this.fileName));
|
||||
this.isExport = false;
|
||||
setTimeout(() => {
|
||||
this.dialogRef.close();
|
||||
}, 9000);
|
||||
// setTimeout(() => {
|
||||
// this.dialogRef.close();
|
||||
// }, 8000);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user