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-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 +++++++ 3 files changed, 26 insertions(+) (limited to 'client/src/app/+my-account/my-account-settings/my-account-profile') 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