Skip to content

Commit

Permalink
fix(Price add): fix again barcode type prefill feature (typo). ref #1108
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Dec 12, 2024
1 parent 738505d commit 0cee626
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/BarcodeManualInputDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<script>
export default {
props: {
barcodeInputPrefillValue: {
barcodeManualInputPrefillValue: {
type: String,
default: ''
}
Expand All @@ -51,8 +51,8 @@ export default {
}
},
mounted() {
if (this.barcodeInputPrefillValue) {
this.barcodeForm.barcode = this.barcodeInputPrefillValue
if (this.barcodeManualInputPrefillValue) {
this.barcodeForm.barcode = this.barcodeManualInputPrefillValue
}
this.$refs.barcodeInput.focus()
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProductInputRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<BarcodeScannerDialog
v-if="barcodeScannerDialog"
v-model="barcodeScannerDialog"
:barcodeInputPrefillValue="productForm.product_code"
:barcodeManualInputPrefillValue="productForm.product_code"
@barcode="setProductCode($event)"
@close="barcodeScannerDialog = false"
/>
Expand Down

0 comments on commit 0cee626

Please sign in to comment.