fix: [FE] new address form switch to view billing detail after create billing address button executed.

This commit is contained in:
weichien
2021-03-19 14:42:04 +08:00
parent 893a8cc8c7
commit 554d1becbf
2 changed files with 2 additions and 2 deletions
@@ -90,7 +90,7 @@
this.submit((this.route('api.address.create')), 'post', 'bookingDetailSection', true, true)
},
successHandler(response){
this.type !== 2 ? this.closeModal() : this.$emit('createdAddress', response.payload.data);
this.type !== 2 ? this.$emit('updateDefaultAddress', response.payload.data) : this.$emit('createdAddress', response.payload.data);
this.resetForm();
}
}
@@ -29,7 +29,7 @@
</div>
<div class="row" v-if="!booking.company.address">
<div class="col-8">
<address-form-component :id="booking.company.id"></address-form-component>
<address-form-component :id="booking.company.id" v-on:updateDefaultAddress="updateDefaultAddress"></address-form-component>
</div>
</div>
<div class="row b-b b-dashed b-grey p-b-25" v-if="booking.company.address">