From: Aashish Sharma Date: Wed, 26 Jul 2023 06:00:32 +0000 (+0530) Subject: mgr/dashboard: add validations to zone access/secret key in zone creation/edit form X-Git-Tag: v19.0.0~800^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f85d83125d27df4b6be24caa2cd7fa0655e56ec6;p=ceph.git mgr/dashboard: add validations to zone access/secret key in zone creation/edit form Fixes: https://tracker.ceph.com/issues/62124 Signed-off-by: Aashish Sharma --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zone-form/rgw-multisite-zone-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zone-form/rgw-multisite-zone-form.component.ts index 1fb9c178da15..5ad0dd51cca1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zone-form/rgw-multisite-zone-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zone-form/rgw-multisite-zone-form.component.ts @@ -112,8 +112,8 @@ export class RgwMultisiteZoneFormComponent implements OnInit { Validators.required ] }), - access_key: new FormControl(null), - secret_key: new FormControl(null), + access_key: new FormControl(null, Validators.required), + secret_key: new FormControl(null, Validators.required), placementTarget: new FormControl(null), placementDataPool: new FormControl(''), placementIndexPool: new FormControl(null),