Chocobozzz/PeerTube

View on GitHub
client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html

Summary

Maintainability
Test Coverage
<my-alert *ngIf="error" type="danger">{{ error }}</my-alert>

<form (ngSubmit)="changePassword()" [formGroup]="form">

  <label i18n for="current-password">Change password</label>
  <my-input-text
    formControlName="current-password" inputId="current-password" i18n-placeholder placeholder="Current password"
    [formError]="formErrors['current-password']" autocomplete="current-password"
  ></my-input-text>

  <my-input-text
    formControlName="new-password" inputId="new-password" i18n-placeholder placeholder="New password"
    [formError]="formErrors['new-password']" autocomplete="new-password"
  ></my-input-text>

  <my-input-text
    formControlName="new-confirmed-password" inputId="new-confirmed-password" i18n-placeholder placeholder="Confirm new password"
    [formError]="formErrors['new-confirmed-password']" autocomplete="new-password"
  ></my-input-text>

  <input type="submit" i18n-value value="Change password" [disabled]="!form.valid">
</form>