-
Notifications
You must be signed in to change notification settings - Fork 2
Display config for the "Can't find the address?" button #18
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
Display config for the "Can't find the address?" button #18
Conversation
The localgov_os_places Geocoder plugin has moved to the localgov_geo module. As such, localgov_forms.geocoder.schema.yml has also moved to the localgov_geo module and now lives on as localgov_geo.geocoder.schema.yml.
The manual address entry button labelled "Can't find the address?" is displayed at all times at the moment. This new configuration captures whether to reveal this button from the beginning or only after an address search has happened.
Display the Manual address entry button labelled "Can't find the address?" based on address lookup element configuration.
Adding a new Webform config where the Manual address entry button is displayed *after* an address search. This Webform is then used in a new test to verify the behaviour of the manual address entry button.
...and packages required to use the Localgov OS Places geocoder plugin.
|
Taking it to Draft state while we gather feedback from further manual testing. Sorry about the confusion. |
…e-address-button-display-cfg
…e-address-button-display-cfg
|
This is Ready for review. We have agreed to add more tickets and pull requests to address the issues arising from the UX review. So this one can go ahead as is. |
ekes
left a comment
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'd say get it merged. Only reason to hold off is if @andybroomfield you think this would be an issue for your usage of this?
| manualButton.removeClass('hidden'); | ||
|
|
||
| // Hide manual entry button if asked for. | ||
| if (typeof settings.centralHub.isManualAddressEntryBtnAlwaysVisible !== 'undefined' && !settings.centralHub.isManualAddressEntryBtnAlwaysVisible) { |
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.
Should probbably remove reference to CentralHub at some point. :-)
andybroomfield
left a comment
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 this is fine, we can pick up the issue about overriding the label and settings as a later issue.
|
Thanks Andy. Merging... |
Resolves #9
This change displays the manual address entry button labelled "Can't find the address?" based on address lookup element configuration.
The manual address entry button is displayed at all times at the moment. This new configuration captures whether to reveal this button from the beginning or only after an address search.
By default, the manual address entry button will continue to appear as soon as the LocalGov address lookup element is loaded.
How to test
Screenshot of the new config item follows:
