From: Anurag Raut Date: Mon, 27 Jul 2026 06:26:33 +0000 (+0530) Subject: mgr/dashboard: show Submit for initial telemetry configuration X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5e91391708433478cc49c7a04f58d1778e7b7dfc;p=ceph.git mgr/dashboard: show Submit for initial telemetry configuration Display "Submit" instead of "Update" during the initial Telemetry configuration flow. Existing Telemetry configurations continue to display "Update". Fixes: https://tracker.ceph.com/issues/78694 Signed-off-by: Anurag Raut --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.html index 05f239d50a4..14a8ccf7717 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.html @@ -466,7 +466,7 @@ (submitActionEvent)="onSubmit()" (backActionEvent)="back()" [form]="previewForm" - [submitText]="actionLabels.UPDATE" + [submitText]="moduleEnabled ? actionLabels.UPDATE : actionLabels.SUBMIT" [cancelText]="actionLabels.BACK" > diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts index 2aa50ee920d..37dc8f54dc2 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts @@ -296,7 +296,7 @@ export class TelemetryComponent extends CdForm implements OnInit { $localize`An Error occurred while updating the Telemetry module configuration.\ Please Try again` ); - // Reset the 'Update' button. + // Reset the submit button. this.previewForm.setErrors({ cdSubmitButton: true }); }, () => {