consul/ui-v2/app/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.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
action-group.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
app-view.js UI: dom usage refactoring (#4924) 2019-05-01 18:21:40 +00:00
catalog-filter.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
changeable-set.js UI: Use custom block-slots for changeableset 2019-05-01 18:22:12 +00:00
child-selector.js UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
code-editor.js UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
confirmation-dialog.js ui: Custom version of ember-block-slots compatible with ember 3 (#5245) 2019-01-30 10:56:04 +00:00
copy-button-feedback.js UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
datacenter-picker.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
delete-confirmation.js UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
dom-buffer-flush.js ui: Adds _super in places where it had been missed (mainly dom-buffer) (#5583) 2019-05-01 18:22:27 +00:00
dom-buffer.js ui: Adds _super in places where it had been missed (mainly dom-buffer) (#5583) 2019-05-01 18:22:27 +00:00
feedback-dialog.js UI: dom usage refactoring (#4924) 2019-05-01 18:21:40 +00:00
form-component.js ui: Previously we were passing through 'fake' events, revert to real.. (#5810) 2019-05-08 17:12:16 +01:00
freetext-filter.js ui: Async Search (#4859) 2019-05-01 18:21:34 +00:00
hashicorp-consul.js ui: Adds `document` and `viewport` methods to the dom service (#5052) 2019-05-01 18:21:57 +00:00
healthcheck-info.js UI: Service Instances (#5326) 2019-05-01 18:22:10 +00:00
healthcheck-list.js UI: Service Instances (#5326) 2019-05-01 18:22:10 +00:00
healthcheck-output.js UI: Service Instances (#5326) 2019-05-01 18:22:10 +00:00
healthcheck-status.js UI: Service Instances (#5326) 2019-05-01 18:22:10 +00:00
healthchecked-resource.js Show Service.ID's throughout the app, allow searching by Service.ID 2018-07-12 13:36:47 +01:00
intention-filter.js WIP: First draft intentions 2018-06-25 12:25:14 -07:00
list-collection.js UI: dom usage refactoring (#4924) 2019-05-01 18:21:40 +00:00
modal-dialog.js UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
modal-layer.js ui: Improvements to modal-dialog (#5585) 2019-05-01 18:22:30 +00:00
phrase-editor.js ui: Search improvements (#5540) 2019-05-01 18:22:36 +00:00
policy-form.js UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
policy-selector.js ui: Ensures nested policy forms are reset properly (#5838) 2019-06-04 15:57:35 +01:00
radio-group.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
role-form.js UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
role-selector.js ui: Ensures nested policy forms are reset properly (#5838) 2019-06-04 15:57:35 +01:00
secret-button.js UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
service-identity.js UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
tab-nav.js UI: Service Instances (#5326) 2019-05-01 18:22:10 +00:00
tab-section.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
tabular-collection.js UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
tabular-details.js UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
tag-list.js UI: Service Instances (#5326) 2019-05-01 18:22:10 +00:00
templated-anchor.js ui: URL encodes any varaibles interpolated into the template... (#5766) 2019-05-02 18:29:43 +00:00
token-list.js ui: Custom version of ember-block-slots compatible with ember 3 (#5245) 2019-01-30 10:56:04 +00:00
tomography-graph.js ui: Fixes RTT display, by ensuring use of ember proxies in tomography (#5666) 2019-05-01 18:22:33 +00:00