-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
Make 'Clear All' button work on order cycle page #2821
Conversation
$scope.scheduleFilter = 0 | ||
$scope.involvingFilter = 0 | ||
$scope.query = '' | ||
$scope.resetSelectFilters() |
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.
sorry @nikobozi, I'm not very angular-savy. When does this get executed? can you explain a bit?
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.
it's when the controller is loaded @sauloperez
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.
yes, and it can then be triggered via a ng-click directive from a DOM element, which in this case is the input button in this template views/admin/order_cycles/_filters.html.haml
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.
Great! thanks both!
Hi @nikobozi ! Welcome! Very happy to have your help with it. If you have any questions setting up the dev env, with Github, etc. feel free to ask on the dev channel of our Slack team. |
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.
@nikobozi welcome to OFN!
$scope.scheduleFilter = 0 | ||
$scope.involvingFilter = 0 | ||
$scope.query = '' | ||
$scope.resetSelectFilters() |
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.
it's when the controller is loaded @sauloperez
Staged on https://staging.katuma.org |
Everything looks good ! Good job and welcome @nikobozi ! https://docs.google.com/document/d/1Gw7Zy3xJsMboJRnTZinQ5OBJBxp_HqvD1DCI7KQqOdY/edit# |
Congrats @nikobozi and thanks again! |
thanks :) |
What? Why?
Closes #2362
The expected functionality (clearing filters) didn't work because there was no corresponding function in the controller.
What should we test?
/admin/order_cycles
The filters should be reset to initial state
Release notes
Make 'Clear All' button work on admin order cycles page