|
@@ -25,18 +25,25 @@ export class MyAccountProfileComponent extends FormReactive implements OnInit {
|
|
|
|
|
|
ngOnInit () {
|
|
|
this.buildForm({
|
|
|
+ 'user-name': null,
|
|
|
'display-name': USER_DISPLAY_NAME_REQUIRED_VALIDATOR,
|
|
|
description: USER_DESCRIPTION_VALIDATOR
|
|
|
})
|
|
|
+ this.form.controls['user-name'].disable()
|
|
|
|
|
|
this.userInformationLoaded.subscribe(() => {
|
|
|
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
|