Skip to content

Commit

Permalink
add padding
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Dec 9, 2024
1 parent b155f49 commit d90e5d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/BarcodeScannerDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</v-tabs-window-item>

<v-tabs-window-item value="type">
<v-form v-model="barcodeManualFormValid" @submit.prevent="barcodeSearchOrAdd">
<v-form v-model="barcodeManualFormValid" class="mb-2" @submit.prevent="barcodeSearchOrSend">
<v-text-field
ref="barcodeManualInput"
v-model="barcodeManualForm.barcode"
Expand All @@ -38,7 +38,7 @@
persistent-hint
>
<template #append-inner>
<v-icon :icon="barcodeManualInputMode === 'search' ? 'mdi-magnify' : 'mdi-plus'" :disabled="!barcodeManualFormValid" @click="barcodeSearchOrAdd" />
<v-icon :icon="barcodeManualInputMode === 'search' ? 'mdi-magnify' : 'mdi-plus'" :disabled="!barcodeManualFormValid" @click="barcodeSearchOrSend" />
</template>
</v-text-field>
</v-form>
Expand Down Expand Up @@ -132,7 +132,7 @@ export default {
onScanFailure(error) { // eslint-disable-line no-unused-vars
// console.warn(`Code scan error = ${error}`)
},
barcodeSearchOrAdd() {
barcodeSearchOrSend() {
if (!this.barcodeManualFormValid) return
if (this.barcodeManualInputMode === 'search') {
this.getProduct(this.barcodeManualForm.barcode)
Expand Down

0 comments on commit d90e5d9

Please sign in to comment.