Skip to content

Commit

Permalink
Added inputNumber to Barcode
Browse files Browse the repository at this point in the history
  • Loading branch information
maurer2 committed Nov 22, 2018
1 parent 4129d5d commit 7ad3118
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/ImageCapturing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>
</div>
<div class="error" v-else>
Leider konnte auf die Kamera nicht zugeriffen werden.
Leider konnte auf die Kamera nicht zugegriffen werden.
</div>
</section>
</template>
Expand Down
8 changes: 5 additions & 3 deletions src/components/NumberInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@
if (isValidLength && isValidNumber) {
this.numberCalculated = this.numberConverter.getNewPostNumber(parseInt(this.number, 10));
this.isValidInput = true;
} else {
this.numberCalculated = '';
this.isValidInput = false;
return;
}
this.numberCalculated = '';
this.isValidInput = false;
}
get counterClass() {
Expand Down
3 changes: 1 addition & 2 deletions src/components/NumberSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
.selectbox {
padding: 0.5rem;
border-radius: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
</style>
4 changes: 4 additions & 0 deletions src/views/BarcodeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
super();
this.numbersList = ['12345678901234', '43210987654321']; // dummy
if (this.$store.state.convertedNumber.length > 0) {
this.numbersList = this.numbersList.concat(this.$store.state.convertedNumber);
}
}
private updateSelectedNumber(value: string) {
Expand Down
4 changes: 2 additions & 2 deletions src/views/InputView.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<div class="card-view">
<h2 class="section-headline">Nummer eingeben</h2>
<number-input />
<NumberInput />

<h2 class="section-headline">Scan Card with Google Mobile Vision</h2>
<image-capturing />
<ImageCapturing />
</div>
</template>

Expand Down

0 comments on commit 7ad3118

Please sign in to comment.