update modal to approve match and reject match

This commit is contained in:
edmondlang
2023-04-19 23:14:56 +08:00
parent 6a80d4cbe5
commit 22b0ebbe5d
2 changed files with 7 additions and 4 deletions
@@ -35,9 +35,9 @@
<button class="btn btn-xs btn-outline-primary b-rad-none m-r-5 requestModal" data-type="approveCorrectMappingTransaction">
<i class="fa fa-check fa-fw"></i>
</button>
<modal-component class="animate__animated animate__fast animate__fadeIn" styleType="fill-in" type="approveCorrectMappingTransaction">
<modal-component class="animate__animated animate__fast animate__fadeIn" type="approveCorrectMappingTransaction">
<general-confirmation-form-component
contentText="Are you sure you want to choose this mapping?"
:contentText="returnTextWithVariable(owner.reference)"
modalType="confirm"
class="text-center"
:apiRoute="route('api.company.delete', 1)"
@@ -64,7 +64,7 @@
<button class="btn btn-xs btn-outline-danger b-rad-none m-r-5 requestModal" data-type="deleteMappingTransaction">
<i class="fa fa-times fa-fw"></i>
</button>
<modal-component class="animate__animated animate__fast animate__fadeIn" styleType="fill-in" type="deleteMappingTransaction">
<modal-component class="animate__animated animate__fast animate__fadeIn" type="deleteMappingTransaction">
<general-confirmation-form-component
contentText="Are you sure you want to reject this mapping?"
modalType="delete"
@@ -124,6 +124,9 @@
case 14:
return 'Non-Operational Payment';
}
},
returnTextWithVariable(variable) {
return "Are you sure you want to choose this mapping " + variable + "?";
}
},
mixins: [componentHandler]
@@ -61,7 +61,7 @@
<div class="col">
<div v-if="stage === 1">
<div class="btn btn-primary btn-sm m-t-10 requestModal" data-type="approveMappingTransaction">Approve all the Mapping Below</div>
<modal-component class="animate__animated animate__fast animate__fadeIn" styleType="fill-in" type="approveMappingTransaction">
<modal-component class="animate__animated animate__fast animate__fadeIn" type="approveMappingTransaction">
<general-confirmation-form-component
contentText="Are you sure you want to approve all these Transaction?"
modalType="confirm"