Skip to content

Commit

Permalink
feat(fulfilment): display labels in the fulfilment page
Browse files Browse the repository at this point in the history
  • Loading branch information
belsman committed Oct 25, 2024
1 parent 30318e2 commit 4b70835
Showing 1 changed file with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,42 @@
<span class="my-2 rc-lv-l-heading">Labels</span>
</vcl-data-list-header>

<div>No label available. You need to submit this fulfillment</div>
<vcl-data-list
mode="none"
[noBorder]="true"
>
<ng-container
*ngIf="fulfillment.fulfillmentState !== 'PENDING'; else noLabel"
></ng-container>
<vcl-data-list-item *ngFor="let label of fulfillment.labels">
<div class="row justify-content-between align-items-center">
<span>Parcel Id</span>
<span>{{ label.parcelId }}</span>
</div>

<div class="row justify-content-between align-items-center">
<span>Shipping number</span>
<span>{{ label.shipmentNumber }}</span>
</div>

<div class="row justify-content-between align-items-center">
<span>
<a
[href]="label.url"
target="_blank"
rel="noopener noreferrer"
>URL</a
>
</span>
</div>
</vcl-data-list-item>
</vcl-data-list>

<ng-template #noLabel>
<div>
No label available. You need to submit this fulfillment
</div></ng-template
>
</vcl-data-list>

<vcl-data-list
Expand Down

0 comments on commit 4b70835

Please sign in to comment.