mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-20 03:36:46 +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>
|
||||||
<button mat-menu-item (click)="exportProject()">
|
<button mat-menu-item (click)="exportProject()">
|
||||||
<mat-icon>call_made</mat-icon>
|
<mat-icon>call_made</mat-icon>
|
||||||
<span>Export portable project</span>
|
<span>Export project</span>
|
||||||
</button>
|
</button>
|
||||||
<button mat-menu-item (click)="importProject()">
|
<button mat-menu-item (click)="importProject()">
|
||||||
<mat-icon>call_received</mat-icon>
|
<mat-icon>call_received</mat-icon>
|
||||||
<span>Import portable project</span>
|
<span>Import project</span>
|
||||||
</button>
|
</button>
|
||||||
<button mat-menu-item (click)="closeProject()">
|
<button mat-menu-item (click)="closeProject()">
|
||||||
<mat-icon>close</mat-icon>
|
<mat-icon>close</mat-icon>
|
||||||
|
@ -96,9 +96,8 @@ export class ImportProjectDialogComponent implements OnInit {
|
|||||||
importProject() {
|
importProject() {
|
||||||
const url = this.prepareUploadPath();
|
const url = this.prepareUploadPath();
|
||||||
this.uploader.queue.forEach((elem) => (elem.url = url));
|
this.uploader.queue.forEach((elem) => (elem.url = url));
|
||||||
|
this.uploader.authToken = `Bearer ${this.server.authToken.toString()}`
|
||||||
this.isFirstStepCompleted = true;
|
this.isFirstStepCompleted = true;
|
||||||
|
|
||||||
const itemToUpload = this.uploader.queue[0];
|
const itemToUpload = this.uploader.queue[0];
|
||||||
this.uploader.uploadItem(itemToUpload);
|
this.uploader.uploadItem(itemToUpload);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user