From 1729d19b890c0a572ba1215fa34e0f9ac336d72f Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Mon, 14 Nov 2022 07:50:54 +0530 Subject: [PATCH] mgr/dashboard: expose more grafana configs in service form Show the grafana_port and initial_admin_password in the form but disable the password field in the edit option Fixes: https://tracker.ceph.com/issues/58016 Signed-off-by: Nizamudeen A (cherry picked from commit 6987191377e5ca623563ae851d87e0961416e3f4) Conflicts: src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts - accept the current change and only apply the `case 'grafana'` in the PR. --- .../service-form/service-form.component.html | 59 +++++++++++++++++++ .../service-form.component.spec.ts | 42 +++++++++---- .../service-form/service-form.component.ts | 13 +++- .../app/shared/models/service.interface.ts | 2 + 4 files changed, 104 insertions(+), 12 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html index dcd898d885378..34f90d33dc9f2 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html @@ -682,6 +682,65 @@ + + +
+ +
+ + The entered value needs to be a number. + The value must be at least 1. + The value cannot exceed 65535. + This field is required. +
+
+ +
+ +
+
+ + + + + + +
+
+
+