From 554d1becbf086a94c1ffe8cdaa0f71af08887e86 Mon Sep 17 00:00:00 2001 From: weichien Date: Fri, 19 Mar 2021 14:42:04 +0800 Subject: [PATCH] fix: [FE] new address form switch to view billing detail after create billing address button executed. --- .../vue/components/address/forms/AddressFormComponent.vue | 2 +- .../bookings/sections/BookingDetailsSectionComponent.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/vue/components/address/forms/AddressFormComponent.vue b/resources/assets/vue/components/address/forms/AddressFormComponent.vue index 4b8b3f52..809165a1 100644 --- a/resources/assets/vue/components/address/forms/AddressFormComponent.vue +++ b/resources/assets/vue/components/address/forms/AddressFormComponent.vue @@ -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(); } } diff --git a/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue b/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue index 0cba9c2f..42189818 100644 --- a/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue +++ b/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue @@ -29,7 +29,7 @@
- +