]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: show Submit for initial telemetry configuration 70564/head
authorAnurag Raut <anuragtraut08@ibm.com>
Mon, 27 Jul 2026 06:26:33 +0000 (11:56 +0530)
committerAnurag Raut <anuragtraut08@ibm.com>
Tue, 4 Aug 2026 09:31:25 +0000 (15:01 +0530)
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 <anuragtraut08@ibm.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts

index 05f239d50a468b57c9256cc8673c7b470c587858..14a8ccf7717e72497cf0ba158bfcf882affffb66 100644 (file)
                 (submitActionEvent)="onSubmit()"
                 (backActionEvent)="back()"
                 [form]="previewForm"
-                [submitText]="actionLabels.UPDATE"
+                [submitText]="moduleEnabled ? actionLabels.UPDATE : actionLabels.SUBMIT"
                 [cancelText]="actionLabels.BACK"
               ></cd-form-button-panel>
             </div>
index 2aa50ee920df4a10db7c377a4d9dcbf4bf0a3b0c..37dc8f54dc2ed4ecbb982f52c2e1f2d5af58d7c7 100644 (file)
@@ -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 });
       },
       () => {