Skip to content

Commit 12a5402

Browse files
authored
Merge pull request ceph#64772 from rhcs-dashboard/form-and-style-fixes
mgr/dashboard: form and style fixes Reviewed-by: Afreen Misbah <[email protected]> Reviewed-by: Nizamudeen A <[email protected]> Reviewed-by: Aashish Sharma <[email protected]>
2 parents 1aabc14 + 5fe6497 commit 12a5402

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/pybind/mgr/dashboard/frontend/src/app/shared/components/inline-message/inline-message.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<h1 class="cds--type-heading-compact-01">{{ title }}</h1>
2929
}
3030

31-
<div class="cds--type-body-compact-01"
31+
<div class="cds--type-body-01"
3232
[class.cds--text-truncate--end]="isTruncated">
3333
<ng-content></ng-content>
3434
</div>

src/pybind/mgr/dashboard/frontend/src/app/shared/forms/cd-form-group.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import {
44
AsyncValidatorFn,
55
UntypedFormGroup,
66
NgForm,
7-
ValidatorFn
7+
ValidatorFn,
8+
FormGroupDirective
89
} from '@angular/forms';
910

1011
/**
@@ -65,7 +66,7 @@ export class CdFormGroup extends UntypedFormGroup {
6566
/**
6667
* Indicates errors of the control in templates
6768
*/
68-
showError(controlName: string, form: NgForm, errorName?: string): boolean {
69+
showError(controlName: string, form: NgForm | FormGroupDirective, errorName?: string): boolean {
6970
const control = this.get(controlName);
7071
return (
7172
(form?.submitted || control.dirty) &&

0 commit comments

Comments
 (0)