]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: form and style fixes 64772/head
authorNaman Munet <naman.munet@ibm.com>
Thu, 31 Jul 2025 12:29:31 +0000 (17:59 +0530)
committerNaman Munet <naman.munet@ibm.com>
Wed, 13 Aug 2025 12:45:00 +0000 (18:15 +0530)
fixes: https://tracker.ceph.com/issues/72354

Signed-off-by: Naman Munet <naman.munet@ibm.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/inline-message/inline-message.component.html
src/pybind/mgr/dashboard/frontend/src/app/shared/forms/cd-form-group.ts

index d6fba56b49ea4dc61a3cedf26356b8bd4f3310a3..a6af7aace9bb8b3841f7928bc2ac7929576484ec 100644 (file)
@@ -28,7 +28,7 @@
         <h1 class="cds--type-heading-compact-01">{{ title }}</h1>
       }
 
-        <div class="cds--type-body-compact-01"
+        <div class="cds--type-body-01"
              [class.cds--text-truncate--end]="isTruncated">
           <ng-content></ng-content>
         </div>
index 09aac7136c46aa8af8098dd2bf0032b2eaf761da..f39c9eb04ab9f68949913268c04f266ed8551d36 100644 (file)
@@ -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) &&