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/+my-account/my-account-settings/my-account-change-email | |
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/+my-account/my-account-settings/my-account-change-email')
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html b/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html index c9f9d8f55..d85be846b 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html | |||
@@ -25,14 +25,10 @@ | |||
25 | </div> | 25 | </div> |
26 | 26 | ||
27 | <div class="form-group"> | 27 | <div class="form-group"> |
28 | <my-input-text formControlName="password" | 28 | <my-input-text |
29 | id="password" | 29 | formControlName="password" id="password" i18n-placeholder placeholder="Current password" |
30 | i18n-placeholder placeholder="Current password" | 30 | [formError]="formErrors['password']" autocomplete="current-password" |
31 | [ngClass]="{ 'input-error': formErrors['password'] }" | 31 | ></my-input-text> |
32 | autocomplete="current-password"></my-input-text> | ||
33 | <div *ngIf="formErrors['password']" class="form-error"> | ||
34 | {{ formErrors['password'] }} | ||
35 | </div> | ||
36 | </div> | 32 | </div> |
37 | 33 | ||
38 | <input type="submit" i18n-value value="Change email" [disabled]="!form.valid"> | 34 | <input type="submit" i18n-value value="Change email" [disabled]="!form.valid"> |