Fix lack of validation errors in TransactionWizard component
MODIFY
resources/assets/js/components/TransactionWizard.vue
resources/assets/js/components/TransactionWizard.vue
<input type="text" v-model="date" />
<div class="hint mt-05">YYYY-MM-DD</div>
<validation-error v-if="errors.date" :message="errors.date"></validation-error>
+ <validation-error v-if="errors.day" :message="errors.day"></validation-error>
</div>
<div class="input">
<label>Description</label>
<div class="row__column">
<label>Until</label>
<input type="text" />
+ <validation-error v-if="errors.end" :message="errors.end"></validation-error>
<div class="hint mt-05">YYYY-MM-DD</div>
</div>
</div>
if (!this.loading) {
this.loading = true
- // Reset
- let errors = []
-
if (this.type == 'spending' && this.isRecurring) { // It's a recurring
let body = {
_token: document.querySelector('meta[name="csrf-token"]').getAttribute('content'),
handleErrors(response) {
this.loading = false
+ let errors = []
+
if (response.data.errors) {
for (let key in response.data.errors) {
if (response.data.errors.hasOwnProperty(key)) {

Fix lack of validation errors in TransactionWizard component