I have resolved Support for project importation #1344 issue

This commit is contained in:
Rajnikant Lodhi 2022-07-06 16:48:29 +05:30
parent cb11e8b1a2
commit 379a39a98f
2 changed files with 3 additions and 4 deletions

View File

@ -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>

View File

@ -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);
}