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 <anuragtraut08@ibm.com>
This commit is contained in:
Anurag Raut 2026-07-27 11:56:33 +05:30
parent 7d65abc9c1
commit 7538d13d37
3 changed files with 3 additions and 2 deletions

View File

@ -466,7 +466,7 @@
(submitActionEvent)="onSubmit()"
(backActionEvent)="back()"
[form]="previewForm"
[submitText]="actionLabels.UPDATE"
[submitText]="moduleEnabled ? actionLabels.UPDATE : actionLabels.SUBMIT"
[cancelText]="actionLabels.BACK"
></cd-form-button-panel>
</div>

View File

@ -139,6 +139,7 @@ describe('TelemetryComponent', () => {
req.flush({});
expect(router.navigate).toHaveBeenCalledWith(['']);
});
});
describe('previewForm', () => {

View 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 });
},
() => {