Skip to content

Commit

Permalink
20421 - UXA for displaying suspension status next to eft overdue paym…
Browse files Browse the repository at this point in the history
…ent accounts (#2817)
  • Loading branch information
Jxio authored May 10, 2024
1 parent 012aaea commit c84ab3f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 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.8",
"version": "2.6.9",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ import {
AccountStatus,
Pages,
Permission,
Role
Role,
SuspensionReason
} from '@/util/constants'
import { Action, Getter, State } from 'pinia-class'
import { Component, Mixins } from 'vue-property-decorator'
Expand Down Expand Up @@ -642,9 +643,9 @@ export default class AccountInfo extends Mixins(
private getStatusText (status) {
switch (status) {
case AccountStatus.NSF_SUSPENDED:
return 'NSF SUSPENDED'
return SuspensionReason.NSF_SUSPENDED
case AccountStatus.SUSPENDED:
return 'SUSPENDED'
return SuspensionReason.SUSPENDED
default:
return status
}
Expand Down
2 changes: 1 addition & 1 deletion auth-web/src/components/pay/LinkedShortNameTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
color="error"
class="item-chip"
>
{{ AccountStatus.SUSPENDED }}
{{ AccountStatus.NSF_SUSPENDED }}
</v-chip>
</template>
<template #item-slot-amountOwing="{ item }">
Expand Down
4 changes: 3 additions & 1 deletion auth-web/src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ export enum SuspensionReasonCode {

export enum SuspensionReason {
NSF = 'NSF',
OVERDUE_EFT = 'Overdue EFT Payments'
OVERDUE_EFT = 'Overdue EFT Payments',
NSF_SUSPENDED = 'NSF SUSPENDED',
SUSPENDED = 'SUSPENDED'
}

export enum IdpHint {
Expand Down

0 comments on commit c84ab3f

Please sign in to comment.