mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-01 00:45:53 +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() {
|
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);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user