Files
exchange-2.0/resources/assets/vue/components/address/forms/SetDefaultBillingAddressComponent.vue
T
2022-02-06 12:29:37 +08:00

22 lines
727 B
Vue

<template>
<div class="row">
<div class="col">
<button class="btn btn-block btn-sm btn-success b-rad-none" @click="submitForm()">Update Default Billing Address</button>
</div>
</div>
</template>
<script>
import componentHandler from '../../../general/mixins/componentHandler';
import ModalFormHandler from '../../../general/mixins/modalFormHandler';
export default {
methods: {
submitForm(){
this.submit(route('api.address.default', this.item.id), 'put', this.section, true, true);
this.$emit('updateBillingAddress', this.item.id);
}
},
mixins: [componentHandler, ModalFormHandler]
}
</script>