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/+login | |
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/+login')
-rw-r--r-- | client/src/app/+login/login.component.html | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/client/src/app/+login/login.component.html b/client/src/app/+login/login.component.html index 834ea6e51..aac2611c6 100644 --- a/client/src/app/+login/login.component.html +++ b/client/src/app/+login/login.component.html | |||
@@ -58,12 +58,10 @@ | |||
58 | <div class="form-group"> | 58 | <div class="form-group"> |
59 | <label i18n for="password">Password</label> | 59 | <label i18n for="password">Password</label> |
60 | 60 | ||
61 | <my-input-text formControlName="password" inputId="password" | 61 | <my-input-text |
62 | i18n-placeholder placeholder="Password" | 62 | formControlName="password" inputId="password" i18n-placeholder placeholder="Password" |
63 | [ngClass]="{ 'input-error': formErrors['password'] }" | 63 | [formError]="formErrors['password']" autocomplete="current-password" [tabindex]="2" |
64 | autocomplete="current-password" [tabindex]="2"></my-input-text> | 64 | ></my-input-text> |
65 | |||
66 | <div *ngIf="formErrors.password" class="form-error">{{ formErrors.password }}</div> | ||
67 | </div> | 65 | </div> |
68 | 66 | ||
69 | <input type="submit" class="peertube-button orange-button" i18n-value value="Login" [disabled]="!form.valid"> | 67 | <input type="submit" class="peertube-button orange-button" i18n-value value="Login" [disabled]="!form.valid"> |