From 52a3f561f5357d076ddc36897d5e1d0fc60a8730 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sun, 17 Jan 2021 18:13:05 +0100 Subject: add username information in profile settings --- .../my-account-change-email.component.html | 3 ++- .../my-account-profile/my-account-profile.component.html | 11 +++++++++++ .../my-account-profile/my-account-profile.component.scss | 8 ++++++++ .../my-account-profile/my-account-profile.component.ts | 7 +++++++ 4 files changed, 28 insertions(+), 1 deletion(-) (limited to 'client/src/app/+my-account') diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html b/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html index 29823bdec..6d2d7d46e 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html @@ -2,7 +2,8 @@
{{ success }}
- Your current email is + Your current email is . + It is never shown to the public.
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 818e34ee0..7e6b45386 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 @@ -2,6 +2,17 @@
+
+ + +
+ People can find you @{{ user.username }}@{{ instanceHost }} +
+
+
{ this.form.patchValue({ + 'user-name': this.user.username, 'display-name': this.user.account.displayName, description: this.user.account.description }) }) } + get instanceHost () { + return window.location.host + } + updateMyProfile () { const displayName = this.form.value['display-name'] const description = this.form.value['description'] || null -- cgit v1.2.3