-
Notifications
You must be signed in to change notification settings - Fork 0
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
EPP-146 amend CHANGE SUBSTANCES page #76
base: master
Are you sure you want to change the base?
Conversation
- add change-substances.html - add fields in index.js, fields.json and pages.json and fiels/index.js - add summary-data-section.js - add some path to next page
2b1769b
to
9980156
Compare
condition: req => | ||
req.sessionModel.get('amend-change-substances-options') === 'no' | ||
&& req.sessionModel.get('amend-name-options') === 'yes' | ||
|| req.sessionModel.get('amend-home-address-options') === 'yes' |
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.
I think we should extract these conditions into a function or variable for readability and also reusability in case we would need to use the same conditions on any other route.
condition: req => | ||
req.sessionModel.get('amend-change-substances-options') === 'no' | ||
&& req.sessionModel.get('amend-name-options') === 'no' | ||
&& req.sessionModel.get('amend-home-address-options') === 'no' |
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.
Same as above
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.
Had a look through the files, Vivek's comment are good suggestions
What?
as per jira ticket EPP-146 Create a CHANGE SUBSTANCES page
Why?
to allow the user to be directed to change substance flow or to skip this step
How?
Testing?
n/a manual
Screenshots (optional)
Anything Else? (optional)
Check list
here is an example commit