Files
exchange-2.0/resources/assets/vue/components/settings/forms/DeleteAffiliateFormComponent.vue
T
Edmond Lang 30ed77f304 Merge branch 'affiliate-program' of https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0 into vapor/production
# Conflicts:
#	resources/assets/vue/components/accounts/forms/RegistrationFormComponent.vue
#	routes/api.php
2026-01-26 00:13:10 +08:00

47 lines
1.5 KiB
Vue

<template>
<div class="row">
<div class="col">
<div class="row m-b-20">
<div class="col">
<h6 class="all-caps m-b-5 bold no-margin">Delete Affiliate Code</h6>
</div>
</div>
<div class="row m-b-20">
<div class="col">
<p>Are you sure you want to delete the affiliate code <strong>{{data.campaign_name}}</strong> ({{data.code}})?</p>
</div>
</div>
<div class="row">
<div class="col p-r-5">
<div class="btn btn-sm btn-default bg-master-lightest btn-block b-rad-none" data-dismiss="modal">Cancel</div>
</div>
<div class="col p-l-5">
<div class="btn btn-sm btn-danger btn-block b-rad-none" @click="submitForm()">Delete</div>
</div>
</div>
</div>
</div>
</template>
<script>
import ModalFormHandler from '../../../general/mixins/modalFormHandler';
export default {
props: {
section: {
type: String,
required: true
},
data: {
type: Object,
required: true
}
},
methods: {
submitForm() {
this.submit(this.route('api.affiliate.delete', this.data.id), 'delete', this.section, true, false);
}
},
mixins: [ModalFormHandler]
}
</script>