Skip to content

Commit

Permalink
Update validity-icon.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
heinerwalter authored Jun 11, 2024
1 parent 3d35fa8 commit a0692a9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import {

/**
* Available validity types for `ValidityIconComponent.validity`:
* - `'valid'`: Green check icon.
* - `'valid'` or `'success'`: Green check icon.
* - `'invalid'` or `'error'`: Red exclamation mark icon.
* - `'warning'`: Yellow exclamation mark icon.
* - `'info'`: Blue "i" icon.
* - `'indeterminate'`: Grey minus icon.
* If undefined, nothing is displayed.
*/
export type ValidityIconType =
'valid' |
'valid' | 'success' |
'invalid' | 'error' |
'warning' |
'info' |
Expand All @@ -27,8 +27,8 @@ export type ValidityIconType =
@Component({
selector: 'pe-validity-icon',
template: IconBaseComponent.generateIconComponentTemplate(
`<fa-icon *ngIf="validity == 'valid'" [icon]="validIcon" class="text-success"></fa-icon>
<fa-icon *ngIf="validity == 'invalid'" [icon]="invalidIcon" class="text-danger"></fa-icon>
`<fa-icon *ngIf="validity == 'valid' || validity == 'success'" [icon]="validIcon" class="text-success"></fa-icon>
<fa-icon *ngIf="validity == 'invalid' || validity == 'error'" [icon]="invalidIcon" class="text-danger"></fa-icon>
<fa-icon *ngIf="validity == 'warning'" [icon]="warningIcon" class="text-warning"></fa-icon>
<fa-icon *ngIf="validity == 'info'" [icon]="infoIcon" class="text-info"></fa-icon>
<fa-icon *ngIf="validity == 'indeterminate'" [icon]="indeterminateIcon" class="text-muted"></fa-icon>`),
Expand Down

0 comments on commit a0692a9

Please sign in to comment.