Skip to content

Commit

Permalink
Merge branch 'main' into user-photo
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbush committed Nov 10, 2024
2 parents a5ab3e4 + b2f76e8 commit 0833b27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import { ToastService } from '../../services/toast.service';
[(ngModel)]="post.title"
required
minlength="3"
maxlength="30"
maxlength="31"
#titleInput="ngModel"
(ngModelChange)="saveFormState()"
/>
<div class="character-count">{{ post.title.length }}/30</div>
<div class="character-count">{{ post.title.length }}/31</div>
@if (titleInput.invalid && (titleInput.dirty || titleInput.touched)) {
<div class="error-message">
@if (titleInput.errors?.['required']) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import { ToastService } from '../../services/toast.service';
[(ngModel)]="post.title"
required
minlength="3"
maxlength="30"
maxlength="31"
#titleInput="ngModel"
/>
<div class="character-count">{{ post.title.length }}/30</div>
<div class="character-count">{{ post.title.length }}/31</div>
@if (titleInput.invalid && (titleInput.dirty || titleInput.touched)) {
<div class="error-message">
@if (titleInput.errors?.['required']) {
Expand Down

0 comments on commit 0833b27

Please sign in to comment.