-
Notifications
You must be signed in to change notification settings - Fork 74
23620 - Add in year filter #3162
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
Conversation
/gcbrun |
Temporary Url for review: https://bcregistry-account-dev--pr-3162-tcls9493.web.app |
|
transactions.filters.filterPayload = { dateFilter: { startDate: '', endDate: '' } } | ||
transactions.filters.isActive = false | ||
transactions.filters.pageNumber = 1 | ||
loadTransactionList() | ||
if (!skipLoadTransactions) { |
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.
Fix double load issue
Temporary Url for review: https://bcregistry-account-dev--pr-3162-tcls9493.web.app |
@@ -4,6 +4,8 @@ | |||
v-show="showDatePicker" | |||
ref="datePicker" | |||
:reset="dateRangeReset" | |||
:setStartDate="transactions.filters.filterPayload.dateFilter.startDate" |
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.
only gets set once
@@ -73,7 +75,7 @@ | |||
filled | |||
hide-details | |||
:placeholder="'Date'" | |||
:value="dateRangeSelected ? 'Custom' : ''" | |||
:value="dateRangeSelected ? 'Custom' : '1 Year'" |
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.
Custom disappears with clear (no text), also shows up after you click a date
transactions.filters.filterPayload = { | ||
dateFilter: { | ||
startDate: moment().subtract(1, 'year').format('YYYY-MM-DD'), | ||
endDate: moment().add(1, 'day').format('YYYY-MM-DD') |
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.
Just in case it sits for a bit and rolls over midnight somehow (EG. Leaving auth-web open for hours then using it) - I guess I could have used a massive date
Issue #:
bcgov/entity#23620
Description of changes:
Add in yearly filter for transactions, should smooth out the load on pay-api for the large transaction screen as well as the smaller client ones.
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).