Skip to content

Commit

Permalink
refactor(Price tag): hide product_name form field behind prop. ref #1078
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Dec 22, 2024
1 parent 31ecf27 commit 988bb74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ContributionAssistantPriceFormCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
contain
/>
<ProofImageCropped v-else-if="mode === 'Validation'" class="mb-4" height="200px" :proofImageFilePath="productPriceForm.proofImage" :boundingBox="productPriceForm.bounding_box" />
<v-row>
<v-row v-if="showProductNameField">
<v-col>
<v-text-field
:model-value="productPriceForm.product_name"
Expand Down Expand Up @@ -114,6 +114,10 @@ export default {
mode: {
type: String,
default: 'Contribution' // or 'Validation'
},
showProductNameField: {
type: Boolean,
default: false
}
},
emits: ['removePriceTag', 'validatePriceTag'],
Expand Down

0 comments on commit 988bb74

Please sign in to comment.