aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts')
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts
index 4fb828082..99eee23b8 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts
@@ -36,6 +36,7 @@ export class MyAccountVideoSettingsComponent extends FormReactive implements OnI
36 nsfwPolicy: null, 36 nsfwPolicy: null,
37 webTorrentEnabled: null, 37 webTorrentEnabled: null,
38 autoPlayVideo: null, 38 autoPlayVideo: null,
39 autoPlayNextVideo: null,
39 videoLanguages: null 40 videoLanguages: null
40 }) 41 })
41 42
@@ -57,6 +58,7 @@ export class MyAccountVideoSettingsComponent extends FormReactive implements OnI
57 nsfwPolicy: this.user.nsfwPolicy, 58 nsfwPolicy: this.user.nsfwPolicy,
58 webTorrentEnabled: this.user.webTorrentEnabled, 59 webTorrentEnabled: this.user.webTorrentEnabled,
59 autoPlayVideo: this.user.autoPlayVideo === true, 60 autoPlayVideo: this.user.autoPlayVideo === true,
61 autoPlayNextVideo: this.user.autoPlayNextVideo,
60 videoLanguages 62 videoLanguages
61 }) 63 })
62 }) 64 })
@@ -66,6 +68,7 @@ export class MyAccountVideoSettingsComponent extends FormReactive implements OnI
66 const nsfwPolicy = this.form.value[ 'nsfwPolicy' ] 68 const nsfwPolicy = this.form.value[ 'nsfwPolicy' ]
67 const webTorrentEnabled = this.form.value['webTorrentEnabled'] 69 const webTorrentEnabled = this.form.value['webTorrentEnabled']
68 const autoPlayVideo = this.form.value['autoPlayVideo'] 70 const autoPlayVideo = this.form.value['autoPlayVideo']
71 const autoPlayNextVideo = this.form.value['autoPlayNextVideo']
69 72
70 let videoLanguages: string[] = this.form.value['videoLanguages'] 73 let videoLanguages: string[] = this.form.value['videoLanguages']
71 if (Array.isArray(videoLanguages)) { 74 if (Array.isArray(videoLanguages)) {
@@ -84,6 +87,7 @@ export class MyAccountVideoSettingsComponent extends FormReactive implements OnI
84 nsfwPolicy, 87 nsfwPolicy,
85 webTorrentEnabled, 88 webTorrentEnabled,
86 autoPlayVideo, 89 autoPlayVideo,
90 autoPlayNextVideo,
87 videoLanguages 91 videoLanguages
88 } 92 }
89 93