From 9dfaa38c9a23a6093faabc06d7b91caecf993dfd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 18 Jan 2021 11:45:00 +0100 Subject: username field consistency --- .../my-account-profile/my-account-profile.component.html | 8 ++++---- .../my-account-profile/my-account-profile.component.scss | 12 ++++-------- .../my-account-profile/my-account-profile.component.ts | 6 +++--- 3 files changed, 11 insertions(+), 15 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html index 7e6b45386..eb2a48e15 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html @@ -3,13 +3,13 @@
- +
- People can find you @{{ user.username }}@{{ instanceHost }} + People can find you using @{{ user.username }}@{{ instanceHost }}
diff --git a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss index 58402a272..2d24417a1 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss @@ -10,20 +10,16 @@ label { margin-bottom: 15px; } +input#username + .text-muted { + margin-top: 5px; +} + input[type=text] { @include peertube-input-text(340px); display: block; } -input#user-name { - border: none; - - & + div { - padding-left: 15px; - } -} - input[type=submit] { @include peertube-button; @include orange-button; 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 { ngOnInit () { this.buildForm({ - 'user-name': null, + username: null, 'display-name': USER_DISPLAY_NAME_REQUIRED_VALIDATOR, description: USER_DESCRIPTION_VALIDATOR }) - this.form.controls['user-name'].disable() + this.form.controls['username'].disable() this.userInformationLoaded.subscribe(() => { this.form.patchValue({ - 'user-name': this.user.username, + username: this.user.username, 'display-name': this.user.account.displayName, description: this.user.account.description }) -- cgit v1.2.3