open-consul/ui-v2/app
John Cowen 334e16a6cf
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
..
adapters UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
components ui: Ensures nested policy forms are reset properly (#5838) 2019-06-04 15:57:35 +01:00
computed ui: Adds blocking query support to the service detail page (#5479) 2019-05-01 18:22:22 +00:00
controllers ui: Adds tick whilst editing the link template in the Settings area (#5820) 2019-05-17 12:33:12 +01:00
forms UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
helpers UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
initializers UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
instance-initializers UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
mixins ui: Don't look for isDescriptor on null (related to null proxies) (#5782) 2019-05-03 11:39:32 +01:00
models UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
routes ui: Adds {{Datacenter}} keyword for URL template interpolation (#5768) 2019-05-02 18:29:43 +00:00
routing UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
search/filters UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
serializers UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
services ui: Replaces destroyRecord with unloadRecord for KV 404's (#5837) 2019-06-04 15:56:20 +01:00
styles ui: Adds tick whilst editing the link template in the Settings area (#5820) 2019-05-17 12:33:12 +01:00
templates ui: Ensures nested policy forms are reset properly (#5838) 2019-06-04 15:57:35 +01:00
utils ui: Previously we were passing through 'fake' events, revert to real.. (#5810) 2019-05-08 17:12:16 +01:00
validations UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00
app.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
env.js ui: Adds easily accessible `env` for user settable 'debug' settings (#5668) 2019-05-01 18:22:35 +00:00
index.html ui: Adds multi syntax linting to the code editor (#4814) 2018-10-19 17:36:38 +01:00
resolver.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
router.js UI: ACL Roles (#5635) 2019-05-01 18:22:37 +00:00