]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Editing RGW bucket fails because of name is already in use 29767/head
authorVolker Theile <vtheile@suse.com>
Tue, 20 Aug 2019 13:09:11 +0000 (15:09 +0200)
committerVolker Theile <vtheile@suse.com>
Tue, 27 Aug 2019 12:53:35 +0000 (14:53 +0200)
commit3aa45e1b1bcc18dec064885d8e0267722da3cd75
tree8e1fa2480e61cadf2fbd1a86043c1fb0e87511db
parente0f1ed20b97e35444962723b7daf7214d975ab1a
mgr/dashboard: Editing RGW bucket fails because of name is already in use

- Validate name only when creating a new bucket
- Set field autofocus depending on whether a bucket is created/edited
- Improve autofocus directive

Fixes: https://tracker.ceph.com/issues/41314
Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/autofocus.directive.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/autofocus.directive.ts