consul/ui-v2/app/templates/components
John Cowen 9013e53ebc
ui: Ensures nested policy forms are reset properly (#5838)
1. All {{ivy-codemirror}} components need 'refreshing' when they become
visible via our own `didAppear` method on the `{{code-editor}}`
component

(also see:)
- https://github.com/hashicorp/consul/pull/4190#discussion_r193270223
- 73db111db8 (r225264296)

2. On initial investigation, it looks like the component we are using
for the code editor doesn't distinguish between setting its `value`
programatically and a `keyup` event, i.e. an interaction from the user.
We currently pretend that whenever its `value` changes, it is a `keyup`
event. This means that when we reset the `value` to `""`
programmatically for form resetting purposes, a 'pretend keyup' event
would also be fired, which would in turn kick off the validation, which
would fail and show an error message for empty values in other fields of
the form - something that is perfectly valid if you haven't typed
anything yet. We solved this by checking for `isPristine` on fields that
are allowed to be empty before you have typed anything.
2019-06-04 15:57:35 +01:00
..
acl-filter.hbs UI: Move legacy ACLs to use the new searchables/changeable-sets (#4933) 2019-05-01 18:21:42 +00:00
action-group.hbs UI: Begin unskipping some more trivial tests (#4574) 2018-08-29 09:59:02 +01:00
app-view.hbs ui: Adds warning flash messages (yellow with warning icon) (#5033) 2019-05-01 18:21:52 +00:00
catalog-filter.hbs UI: Service Numbers (#5348) 2019-05-01 18:22:11 +00:00
changeable-set.hbs ui: Async Search (#4859) 2019-05-01 18:21:34 +00:00
child-selector.hbs UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
code-editor.hbs UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
confirmation-dialog.hbs UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
copy-button-feedback.hbs UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
copy-button.hbs UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
datacenter-picker.hbs UI V2 (#4086) 2018-05-10 19:52:53 +01:00
delete-confirmation.hbs UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
dom-buffer-flush.hbs UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
dom-buffer.hbs UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
feedback-dialog.hbs UI: Tooltips and feedback-dialogs are the same thing - merge (#4678) 2018-09-21 11:13:21 +01:00
form-component.hbs UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
freetext-filter.hbs Use html5 oninput instead of onkeyup for native textual inputs 2018-07-03 15:40:15 +01:00
hashicorp-consul.hbs ui: Remove index.html from the docs URL so we just point to `/docs` (#5547) 2019-05-01 18:22:25 +00:00
healthcheck-info.hbs UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
healthcheck-list.hbs UI: Add forking based on service instance id existence (#5392) 2019-05-01 18:22:15 +00:00
healthcheck-output.hbs UI: Service Instances (#5326) 2019-05-01 18:22:10 +00:00
healthcheck-status.hbs UI: Service Instances (#5326) 2019-05-01 18:22:10 +00:00
healthchecked-resource.hbs ui: Improve layout of node cards on large and small screens (#4761) 2018-10-11 10:19:06 +01:00
intention-filter.hbs ui: Async Search (#4859) 2019-05-01 18:21:34 +00:00
list-collection.hbs UI V2 (#4086) 2018-05-10 19:52:53 +01:00
modal-dialog.hbs ui: Improvements to modal-dialog (#5585) 2019-05-01 18:22:30 +00:00
modal-layer.hbs UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
phrase-editor.hbs ui: Search improvements (#5540) 2019-05-01 18:22:36 +00:00
policy-form.hbs ui: Ensures nested policy forms are reset properly (#5838) 2019-06-04 15:57:35 +01:00
policy-selector.hbs ui: Ensures nested policy forms are reset properly (#5838) 2019-06-04 15:57:35 +01:00
radio-group.hbs UI V2 (#4086) 2018-05-10 19:52:53 +01:00
role-form.hbs UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
role-selector.hbs ui: fix production build only empty role modal (#5806) 2019-05-08 10:01:26 +01:00
secret-button.hbs UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
service-identity.hbs UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
tab-nav.hbs UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
tab-section.hbs UI V2 (#4086) 2018-05-10 19:52:53 +01:00
tabular-collection.hbs UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
tabular-details.hbs UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
tag-list.hbs UI: Service Instances (#5326) 2019-05-01 18:22:10 +00:00
templated-anchor.hbs ui: dashboard links (#5704) 2019-05-01 18:22:38 +00:00
token-list.hbs ui: Gives the minimal in-form token list use a maximum row size (#5807) 2019-05-08 10:02:09 +01:00
tomography-graph.hbs UI: Reduce in-development deprecations (also use toLocaleString) (#4677) 2018-10-01 13:42:42 +01:00