]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Preserve rule selection on pool type change
authorStephan Müller <smueller@suse.com>
Tue, 3 Mar 2020 14:39:32 +0000 (15:39 +0100)
committerStephan Müller <smueller@suse.com>
Mon, 9 Mar 2020 11:35:58 +0000 (12:35 +0100)
commit63480750b8bc679feb8432a6485827dc95094bd5
tree1a901264da9ced356652045a0a5b36a21180a271
parent9addcfcff93df58273e38f39d9b1f5cbaf1e78de
mgr/dashboard: Preserve rule selection on pool type change

Now if the pool type is changed from replicated to erasure in the pool
form and you have multiple rules, your selection is preserved and not
overwritten by null, which caused an error message to be shown
(crush rule is required).

Fixes: https://tracker.ceph.com/issues/44371
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts