mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-19 19:29:03 +00:00
I have resolved Support for project importation #1344 issue
This commit is contained in:
parent
cb11e8b1a2
commit
379a39a98f
@ -139,11 +139,11 @@
|
||||
</button>
|
||||
<button mat-menu-item (click)="exportProject()">
|
||||
<mat-icon>call_made</mat-icon>
|
||||
<span>Export portable project</span>
|
||||
<span>Export project</span>
|
||||
</button>
|
||||
<button mat-menu-item (click)="importProject()">
|
||||
<mat-icon>call_received</mat-icon>
|
||||
<span>Import portable project</span>
|
||||
<span>Import project</span>
|
||||
</button>
|
||||
<button mat-menu-item (click)="closeProject()">
|
||||
<mat-icon>close</mat-icon>
|
||||
|
@ -96,9 +96,8 @@ export class ImportProjectDialogComponent implements OnInit {
|
||||
importProject() {
|
||||
const url = this.prepareUploadPath();
|
||||
this.uploader.queue.forEach((elem) => (elem.url = url));
|
||||
|
||||
this.uploader.authToken = `Bearer ${this.server.authToken.toString()}`
|
||||
this.isFirstStepCompleted = true;
|
||||
|
||||
const itemToUpload = this.uploader.queue[0];
|
||||
this.uploader.uploadItem(itemToUpload);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user