From: Naman Munet Date: Thu, 31 Jul 2025 12:29:31 +0000 (+0530) Subject: mgr/dashboard: form and style fixes X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5fe6497610d4db6147144a64117e62f4dac6ac17;p=ceph.git mgr/dashboard: form and style fixes fixes: https://tracker.ceph.com/issues/72354 Signed-off-by: Naman Munet --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/inline-message/inline-message.component.html b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/inline-message/inline-message.component.html index d6fba56b49ea4..a6af7aace9bb8 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/inline-message/inline-message.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/inline-message/inline-message.component.html @@ -28,7 +28,7 @@

{{ title }}

} -
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/cd-form-group.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/cd-form-group.ts index 09aac7136c46a..f39c9eb04ab9f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/cd-form-group.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/cd-form-group.ts @@ -4,7 +4,8 @@ import { AsyncValidatorFn, UntypedFormGroup, NgForm, - ValidatorFn + ValidatorFn, + FormGroupDirective } from '@angular/forms'; /** @@ -65,7 +66,7 @@ export class CdFormGroup extends UntypedFormGroup { /** * Indicates errors of the control in templates */ - showError(controlName: string, form: NgForm, errorName?: string): boolean { + showError(controlName: string, form: NgForm | FormGroupDirective, errorName?: string): boolean { const control = this.get(controlName); return ( (form?.submitted || control.dirty) &&