Update OfferResultCard: add location, mini map, fix price format
All checks were successful
Build Docker Image / build (push) Successful in 4m30s
All checks were successful
Build Docker Image / build (push) Successful in 4m30s
- Remove distance from right side (shown in stepper) - Change price format to symbol + formatted number (e.g. $1,200/тонна) - Add locationName prop for displaying offer location - Add LocationMiniMap component for showing point on map - Update hub page and CalcResultContent to pass coordinates
This commit is contained in:
@@ -61,11 +61,13 @@
|
||||
<template #card="{ item }">
|
||||
<OfferResultCard
|
||||
:source-name="item.name"
|
||||
:location-name="getOfferData(item.uuid)?.locationName"
|
||||
:product-name="selectedProductName"
|
||||
:price-per-unit="getOfferData(item.uuid)?.pricePerUnit"
|
||||
:currency="getOfferData(item.uuid)?.currency"
|
||||
:unit="getOfferData(item.uuid)?.unit"
|
||||
:total-distance="item.distanceKm"
|
||||
:latitude="item.latitude"
|
||||
:longitude="item.longitude"
|
||||
:stages="item.stages"
|
||||
/>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user