From 5fe6497610d4db6147144a64117e62f4dac6ac17 Mon Sep 17 00:00:00 2001 From: Naman Munet Date: Thu, 31 Jul 2025 17:59:31 +0530 Subject: [PATCH] mgr/dashboard: form and style fixes fixes: https://tracker.ceph.com/issues/72354 Signed-off-by: Naman Munet --- .../components/inline-message/inline-message.component.html | 2 +- .../dashboard/frontend/src/app/shared/forms/cd-form-group.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 d6fba56b49ea..a6af7aace9bb 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 09aac7136c46..f39c9eb04ab9 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) && -- 2.47.3