diff options
Diffstat (limited to 'client/src/app/account/account-settings/account-details/account-details.component.ts')
-rw-r--r-- | client/src/app/account/account-settings/account-details/account-details.component.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/app/account/account-settings/account-details/account-details.component.ts b/client/src/app/account/account-settings/account-details/account-details.component.ts index d835c53e5..b8c19d8d6 100644 --- a/client/src/app/account/account-settings/account-details/account-details.component.ts +++ b/client/src/app/account/account-settings/account-details/account-details.component.ts | |||
@@ -31,7 +31,8 @@ export class AccountDetailsComponent extends FormReactive implements OnInit { | |||
31 | 31 | ||
32 | buildForm () { | 32 | buildForm () { |
33 | this.form = this.formBuilder.group({ | 33 | this.form = this.formBuilder.group({ |
34 | displayNSFW: [ this.user.displayNSFW ] | 34 | displayNSFW: [ this.user.displayNSFW ], |
35 | autoPlayVideo: [ this.user.autoPlayVideo ] | ||
35 | }) | 36 | }) |
36 | 37 | ||
37 | this.form.valueChanges.subscribe(data => this.onValueChanged(data)) | 38 | this.form.valueChanges.subscribe(data => this.onValueChanged(data)) |
@@ -43,8 +44,10 @@ export class AccountDetailsComponent extends FormReactive implements OnInit { | |||
43 | 44 | ||
44 | updateDetails () { | 45 | updateDetails () { |
45 | const displayNSFW = this.form.value['displayNSFW'] | 46 | const displayNSFW = this.form.value['displayNSFW'] |
47 | const autoPlayVideo = this.form.value['autoPlayVideo'] | ||
46 | const details: UserUpdateMe = { | 48 | const details: UserUpdateMe = { |
47 | displayNSFW | 49 | displayNSFW, |
50 | autoPlayVideo | ||
48 | } | 51 | } |
49 | 52 | ||
50 | this.error = null | 53 | this.error = null |