Skip to content

Commit

Permalink
Bug #14235: [BUG/Regression] [Collection] Missing ZIP name when creat…
Browse files Browse the repository at this point in the history
…ing a project on Collect.
  • Loading branch information
Salim Terres committed Feb 4, 2025
1 parent 95a12bc commit 0b669a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
</thead>
<tbody>
<tr *ngIf="zipFileStatus$ | async as zippedFile">
<td>{{ zippedFile?.name }}</td>
<td>{{ zippedFile?.transactionId + '.zip' }}</td>
<td>{{ zippedFile?.size | fileSize }}</td>
<td>
<vitamui-common-progress-bar [percent]="zippedFile?.currentFileUploadedSize"></vitamui-common-progress-bar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit 0b669a2

Please sign in to comment.