buildForm () {
this.form = this.formBuilder.group({
- displayNSFW: [ this.user.displayNSFW ]
+ displayNSFW: [ this.user.displayNSFW ],
+ autoPlayVideo: [ this.user.autoPlayVideo ]
})
this.form.valueChanges.subscribe(data => this.onValueChanged(data))
updateDetails () {
const displayNSFW = this.form.value['displayNSFW']
+ const autoPlayVideo = this.form.value['autoPlayVideo']
const details: UserUpdateMe = {
- displayNSFW
+ displayNSFW,
+ autoPlayVideo
}
this.error = null