-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
24811 - Remove transaction counts from transaction table #3178
Conversation
/gcbrun |
@@ -74,8 +74,7 @@ export const useTransactions = () => { | |||
currentOrganization.value.id, transactions.filters, viewAll.value) | |||
if (response?.data) { | |||
transactions.results = response.data.items || [] | |||
transactions.totalResults = response.data.total | |||
|
|||
transactions.totalResults = transactions.results.length * response.data.page + (response.data.hasMore ? 1 : 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This controls the next page button
@@ -122,7 +122,7 @@ export default class PaymentService { | |||
if (viewAll) params.append('viewAll', `${viewAll}`) | |||
|
|||
const url = `${ConfigHelper.getPayAPIURL()}/accounts/${accountId}/payments/queries` | |||
return axios.post(url, filterParams.filterPayload, { params }) | |||
return axios.post(url, { ...filterParams.filterPayload, excludeCounts: true }, { params }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
always using this param
Temporary Url for review: https://bcregistry-account-dev--pr-3178-mhfsvf2l.web.app |
Quality Gate passedIssues Measures |
Relies on PAY-API:
bcgov/sbc-pay#1861
Issue #:
bcgov/entity#24811
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).