diff --git a/src/components/ContributionAssistantPriceFormCard.vue b/src/components/ContributionAssistantPriceFormCard.vue index 4c2496f50c7..c4e3855049e 100644 --- a/src/components/ContributionAssistantPriceFormCard.vue +++ b/src/components/ContributionAssistantPriceFormCard.vue @@ -8,11 +8,13 @@ + import('../components/ProofImageCropped.vue')), ProductInputRow: defineAsyncComponent(() => import('../components/ProductInputRow.vue')), PriceInputRow: defineAsyncComponent(() => import('../components/PriceInputRow.vue')), ProofFooterRow: defineAsyncComponent(() => import('../components/ProofFooterRow.vue')), diff --git a/src/components/ProofImageCropped.vue b/src/components/ProofImageCropped.vue new file mode 100644 index 00000000000..0ba4ffc0e8f --- /dev/null +++ b/src/components/ProofImageCropped.vue @@ -0,0 +1,54 @@ + + + diff --git a/src/views/PriceValidatorAssistant.vue b/src/views/PriceValidatorAssistant.vue index 5ed8a9a0a15..48e8c0d3868 100644 --- a/src/views/PriceValidatorAssistant.vue +++ b/src/views/PriceValidatorAssistant.vue @@ -121,6 +121,7 @@ export default { // proofImage: 'https://prices.openfoodfacts.org/img/0024/2NToLMxOgN.webp', product_code: barcodeString, detected_product_code: barcodeString, + bounding_box: data.items[i].bounding_box } this.productPriceForms.push(productPriceForm) }