Skip to content

Commit

Permalink
22552 - Eft refund enhancement (#2950)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxio authored Aug 6, 2024
1 parent fe8a831 commit 4e11935
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions auth-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "2.6.60",
"version": "2.6.61",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
3 changes: 2 additions & 1 deletion auth-web/src/views/pay/eft/ShortNameDetailsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
mdi-alert
</v-icon>
<p class="account-alert__info mb-0 pl-3">
Please verify if the {{ unsettledAmount }} balance is eligible for a refund, or you can link to a new account.
Caution: Please verify if the {{ unsettledAmount }} balance is eligible for a refund, or you can link to a new account.
</p>
</div>
</v-alert>
Expand Down Expand Up @@ -177,5 +177,6 @@ export default defineComponent({
}
.account-alert__info {
flex: 1 1 auto;
color: $TextColorGray;
}
</style>
9 changes: 7 additions & 2 deletions auth-web/src/views/pay/eft/ShortNameRefundView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@

<v-row>
<v-col class="col-6 col-sm-3 font-weight-bold">
Staff Comment
Reason for Refund
</v-col>
<v-text-field
v-model.trim="staffComment"
filled
label="Staff Comment (Optional)"
label="Reason for Refund"
persistent-hint
data-test="staffComment"
:rules="staffCommentRules"
Expand Down Expand Up @@ -180,6 +180,7 @@ export default defineComponent({
],
orgStore: useOrgStore(),
staffCommentRules: [
v => !!v || 'Reason for Refund is required',
v => (v.length < 500) || 'Cannot exceed 500 characters'
],
isSubmitted: false
Expand Down Expand Up @@ -212,6 +213,10 @@ export default defineComponent({
state.isSubmitted = true
buttonText.value = 'Approved'
buttonColor.value = 'green'
state.isLoading = false
// 2-second delay before navigating away
await new Promise(resolve => setTimeout(resolve, 2000)) // 2-second delay
handleCancelButton()
} catch (error) {
state.isSubmitted = false
buttonText.value = 'Failed'
Expand Down

0 comments on commit 4e11935

Please sign in to comment.