-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend #35: fix validation errors in userForm bio field
- Loading branch information
1 parent
9bffa89
commit 12ea7d2
Showing
3 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
14 changes: 8 additions & 6 deletions
14
src/app/shared/user-form/ui/user-form-exceptions/user-form-exceptions.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<div> | ||
<div style="padding: 6px" *ngIf="errors()?.['required']"> | ||
<ion-text color="danger">{{ field() }} is required.</ion-text> | ||
</div> | ||
<div style="padding: 6px" *ngIf="errors()?.['maxlength']"> | ||
<ion-text color="danger">{{ field() }} must be at most 20 characters long.</ion-text> | ||
</div> | ||
<div *ngIf="errors()?.['required']" style="padding: 6px"> | ||
<ion-text color="danger">{{ field() }} is required.</ion-text> | ||
</div> | ||
<div *ngIf="errors()?.['maxlength']" style="padding: 6px"> | ||
<ion-text | ||
color="danger">{{ field() + " must be at most " + errors()?.['maxlength']['requiredLength'] + " characters long." }} | ||
</ion-text> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters