diff --git a/ui/ui-frontend/projects/collect/src/app/collect/projects/create-project/create-project.component.html b/ui/ui-frontend/projects/collect/src/app/collect/projects/create-project/create-project.component.html index 7d27b5de1d..1306b66116 100644 --- a/ui/ui-frontend/projects/collect/src/app/collect/projects/create-project/create-project.component.html +++ b/ui/ui-frontend/projects/collect/src/app/collect/projects/create-project/create-project.component.html @@ -478,7 +478,7 @@ - {{ zippedFile?.name }} + {{ zippedFile?.transactionId + '.zip' }} {{ zippedFile?.size | fileSize }} diff --git a/ui/ui-frontend/projects/collect/src/app/collect/projects/create-project/create-project.component.ts b/ui/ui-frontend/projects/collect/src/app/collect/projects/create-project/create-project.component.ts index d184cb7549..4ee584e790 100644 --- a/ui/ui-frontend/projects/collect/src/app/collect/projects/create-project/create-project.component.ts +++ b/ui/ui-frontend/projects/collect/src/app/collect/projects/create-project/create-project.component.ts @@ -355,7 +355,10 @@ export class CreateProjectComponent implements OnInit, AfterViewChecked { }) as Transaction, ), switchMap((transaction) => this.transactionsService.create(transaction)), - tap((createdTransactionResponse) => (transactionId = createdTransactionResponse.id)), + tap((createdTransactionResponse) => { + transactionId = createdTransactionResponse.id; + zipFile.setTransactionId(transactionId); + }), switchMap(() => zipFile.addFiles(this.filesToUpload).generateZip()), switchMap((content) => this.archiveCollectService.uploadZip(content, transactionId)), tap((httpEvent) => zipFile.updateUploadingZipFileStatus(httpEvent)),