diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-20 16:42:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-20 16:42:21 +0200 |
commit | 75084782b767f51f6158ada1984cf339c6302960 (patch) | |
tree | 178904ed08269de95683a063623d17cf87e56fad /client/src/app/+reset-password | |
parent | 9bc3622320dc43474ce4b60c222ec25e6e657b97 (diff) | |
download | PeerTube-75084782b767f51f6158ada1984cf339c6302960.tar.gz PeerTube-75084782b767f51f6158ada1984cf339c6302960.tar.zst PeerTube-75084782b767f51f6158ada1984cf339c6302960.zip |
Handle input error in custom input text
Diffstat (limited to 'client/src/app/+reset-password')
-rw-r--r-- | client/src/app/+reset-password/reset-password.component.html | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/client/src/app/+reset-password/reset-password.component.html b/client/src/app/+reset-password/reset-password.component.html index 130873593..fa53e7526 100644 --- a/client/src/app/+reset-password/reset-password.component.html +++ b/client/src/app/+reset-password/reset-password.component.html | |||
@@ -7,10 +7,8 @@ | |||
7 | 7 | ||
8 | <my-input-text | 8 | <my-input-text |
9 | formControlName="password" inputId="password" i18n-placeholder placeholder="Password" | 9 | formControlName="password" inputId="password" i18n-placeholder placeholder="Password" |
10 | [ngClass]="{ 'input-error': formErrors['password'] }" autocomplete="new-password" | 10 | [formError]="formErrors['password']" autocomplete="new-password" |
11 | ></my-input-text> | 11 | ></my-input-text> |
12 | |||
13 | <div *ngIf="formErrors.password" class="form-error">{{ formErrors.password }}</div> | ||
14 | </div> | 12 | </div> |
15 | 13 | ||
16 | <div class="form-group"> | 14 | <div class="form-group"> |
@@ -18,10 +16,8 @@ | |||
18 | 16 | ||
19 | <my-input-text | 17 | <my-input-text |
20 | formControlName="password-confirm" inputId="password-confirm" i18n-placeholder placeholder="Confirmed password" | 18 | formControlName="password-confirm" inputId="password-confirm" i18n-placeholder placeholder="Confirmed password" |
21 | [ngClass]="{ 'input-error': formErrors['password-confirm'] }" autocomplete="new-password" | 19 | [formError]="formErrors['password-confirm']" autocomplete="new-password" |
22 | ></my-input-text> | 20 | ></my-input-text> |
23 | |||
24 | <div *ngIf="formErrors['password-confirm']" class="form-error">{{ formErrors['password-confirm'] }}</div> | ||
25 | </div> | 21 | </div> |
26 | 22 | ||
27 | <input | 23 | <input |