diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-18 11:45:00 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-18 11:53:27 +0100 |
commit | 9dfaa38c9a23a6093faabc06d7b91caecf993dfd (patch) | |
tree | 81456a1c8d7ae23a1fa451799fa37a0529132042 /client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts | |
parent | a8a63b1ffe3780615c1dba6b4d776535a0e3a83d (diff) | |
download | PeerTube-9dfaa38c9a23a6093faabc06d7b91caecf993dfd.tar.gz PeerTube-9dfaa38c9a23a6093faabc06d7b91caecf993dfd.tar.zst PeerTube-9dfaa38c9a23a6093faabc06d7b91caecf993dfd.zip |
username field consistency
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts')
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts index 957abe555..80e4446c8 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts | |||
@@ -25,15 +25,15 @@ export class MyAccountProfileComponent extends FormReactive implements OnInit { | |||
25 | 25 | ||
26 | ngOnInit () { | 26 | ngOnInit () { |
27 | this.buildForm({ | 27 | this.buildForm({ |
28 | 'user-name': null, | 28 | username: null, |
29 | 'display-name': USER_DISPLAY_NAME_REQUIRED_VALIDATOR, | 29 | 'display-name': USER_DISPLAY_NAME_REQUIRED_VALIDATOR, |
30 | description: USER_DESCRIPTION_VALIDATOR | 30 | description: USER_DESCRIPTION_VALIDATOR |
31 | }) | 31 | }) |
32 | this.form.controls['user-name'].disable() | 32 | this.form.controls['username'].disable() |
33 | 33 | ||
34 | this.userInformationLoaded.subscribe(() => { | 34 | this.userInformationLoaded.subscribe(() => { |
35 | this.form.patchValue({ | 35 | this.form.patchValue({ |
36 | 'user-name': this.user.username, | 36 | username: this.user.username, |
37 | 'display-name': this.user.account.displayName, | 37 | 'display-name': this.user.account.displayName, |
38 | description: this.user.account.description | 38 | description: this.user.account.description |
39 | }) | 39 | }) |