<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>