aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account.component.html
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-08-23 14:37:49 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-08-23 14:37:49 +0200
commit0f6da32b148c0f4146b2ae9ad1add9a9f00cc339 (patch)
tree1272a5892e357aa0a0d370545effa6800092d568 /client/src/app/account/account.component.html
parent39f87cb21689a912559d0498641db7d2de4a784d (diff)
downloadPeerTube-0f6da32b148c0f4146b2ae9ad1add9a9f00cc339.tar.gz
PeerTube-0f6da32b148c0f4146b2ae9ad1add9a9f00cc339.tar.zst
PeerTube-0f6da32b148c0f4146b2ae9ad1add9a9f00cc339.zip
Client: update to new form api
Diffstat (limited to 'client/src/app/account/account.component.html')
-rw-r--r--client/src/app/account/account.component.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/account/account.component.html b/client/src/app/account/account.component.html
index ad8f690bd..4797fa914 100644
--- a/client/src/app/account/account.component.html
+++ b/client/src/app/account/account.component.html
@@ -3,14 +3,14 @@
3<div *ngIf="information" class="alert alert-success">{{ information }}</div> 3<div *ngIf="information" class="alert alert-success">{{ information }}</div>
4<div *ngIf="error" class="alert alert-danger">{{ error }}</div> 4<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
5 5
6<form role="form" (ngSubmit)="changePassword(newPassword.value, newConfirmedPassword.value)" [ngFormModel]="changePasswordForm"> 6<form role="form" (ngSubmit)="changePassword()" [formGroup]="changePasswordForm">
7 <div class="form-group"> 7 <div class="form-group">
8 <label for="new-password">New password</label> 8 <label for="new-password">New password</label>
9 <input 9 <input
10 type="password" class="form-control" name="new-password" id="new-password" 10 type="password" class="form-control" name="new-password" id="new-password"
11 ngControl="newPassword" #newPassword="ngForm" 11 [(ngModel)]="newPassword" #newPasswordInput="ngModel"
12 > 12 >
13 <div [hidden]="newPassword.valid || newPassword.pristine" class="alert alert-warning"> 13 <div [hidden]="changePasswordForm.controls['new-password'].valid || changePasswordForm.controls['new-password'].pristine" class="alert alert-warning">
14 The password should have more than 5 characters 14 The password should have more than 5 characters
15 </div> 15 </div>
16 </div> 16 </div>
@@ -19,7 +19,7 @@
19 <label for="name">Confirm new password</label> 19 <label for="name">Confirm new password</label>
20 <input 20 <input
21 type="password" class="form-control" name="new-confirmed-password" id="new-confirmed-password" 21 type="password" class="form-control" name="new-confirmed-password" id="new-confirmed-password"
22 ngControl="newConfirmedPassword" #newConfirmedPassword="ngForm" 22 [(ngModel)]="newConfirmedPassword" #newConfirmedPasswordInput="ngModel"
23 > 23 >
24 </div> 24 </div>
25 25