]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fixed bug in service form 59446/head
authorAfreen Misbah <afreen23.git@gmail.com>
Tue, 3 Sep 2024 06:48:46 +0000 (12:18 +0530)
committerAfreen Misbah <afreen23.git@gmail.com>
Tue, 3 Sep 2024 06:48:46 +0000 (12:18 +0530)
The commit in main went through this PR https://github.com/ceph/ceph/pull/59496/commits/6c25635be8c2ec0c2f637c4fe6952f781c1ad12c

This PR wont be backported to squid hence adding the change in separate commit.

Signed-off-by: Afreen Misbah <afreen23.git@gmail.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts

index a37cca340142b806733945d9e981483a1a728843..9602c856aed81af9897ff5c0aaff567cd5f943ff 100644 (file)
@@ -195,7 +195,12 @@ export class ServiceFormComponent extends CdForm implements OnInit {
           })
         ]
       ],
-      group: [null, Validators.required],
+      group: [
+        null,
+        CdValidators.requiredIf({
+          service_type: 'nvmeof'
+        })
+      ],
       // RGW
       rgw_frontend_port: [null, [CdValidators.number(false)]],
       realm_name: [null],