]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Subscribe to changes when RequiredIf is used 28231/head
authorTiago Melo <tmelo@suse.com>
Thu, 23 May 2019 16:18:22 +0000 (16:18 +0000)
committerTiago Melo <tmelo@suse.com>
Thu, 23 May 2019 17:35:46 +0000 (17:35 +0000)
commit86285b543b7d4f594599365a4e78c474d7ebb0ae
treef1a513af7dc384d71f0e90b3f7434303204518b2
parent19c738e45c11d5cffc14e2eb20df4d9a50d6f0a5
mgr/dashboard: Subscribe to changes when RequiredIf is used

FormControls that use 'requiredIf' validators depend on the state of other
controls.
To prevent that some of the state changes are not tracked, we now automatically
subscribe to the prerequsited controls and update the validation of the parent
control.

Fixes: https://tracker.ceph.com/issues/40017
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-subuser-modal/rgw-user-subuser-modal.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/forms/cd-validators.ts