mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
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:
parent
7d65abc9c1
commit
7538d13d37
@ -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>
|
||||
|
||||
@ -139,6 +139,7 @@ describe('TelemetryComponent', () => {
|
||||
req.flush({});
|
||||
expect(router.navigate).toHaveBeenCalledWith(['']);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('previewForm', () => {
|
||||
|
||||
@ -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 });
|
||||
},
|
||||
() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user