Skip to content

Commit

Permalink
Feature/4856 1 (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
shabeeb-aot authored Jan 20, 2021
1 parent 61600e2 commit e66c7ee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions auth-web/src/store/modules/staff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class StaffModule extends VuexModule {
accountUnderReviewAdmin: User
accountUnderReviewAdminContact: Contact
accountUnderReviewAffidavitInfo: AffidavitInformation
suspendedReviewTotal: number = 0

public get accountNotaryName (): string {
return this.accountUnderReviewAffidavitInfo?.issuer || '-'
Expand All @@ -56,7 +57,7 @@ export default class StaffModule extends VuexModule {
}

public get suspendedReviewCount (): number {
return this.suspendedStaffOrgs?.length || 0
return this.suspendedReviewTotal || 0
}

@Mutation
Expand Down Expand Up @@ -119,6 +120,11 @@ export default class StaffModule extends VuexModule {
this.accountUnderReviewAdminContact = contact
}

@Mutation
public setSuspendedReviewCount (count: number) {
this.suspendedReviewTotal = count
}

@Action({ commit: 'setProducts', rawError: true })
public async getProducts (): Promise<ProductCode[]> {
const response = await StaffService.getProducts()
Expand Down Expand Up @@ -205,7 +211,8 @@ export default class StaffModule extends VuexModule {
}
@Action({ commit: 'setSuspendedStaffOrgs', rawError: true })
public async syncSuspendedStaffOrgs () {
const response = await StaffService.getStaffOrgs(AccountStatus.NSF_SUSPENDED)
const response:any = await StaffService.getStaffOrgs(AccountStatus.NSF_SUSPENDED)
this.context.commit('setSuspendedReviewCount', response?.data?.total)
return response?.data?.orgs || []
}
@Action({ rawError: true })
Expand Down

0 comments on commit e66c7ee

Please sign in to comment.