diff options
Diffstat (limited to 'client/src/app/shared/shared-user-settings/user-video-settings.component.ts')
-rw-r--r-- | client/src/app/shared/shared-user-settings/user-video-settings.component.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-user-settings/user-video-settings.component.ts b/client/src/app/shared/shared-user-settings/user-video-settings.component.ts index 0cd889a8a..7d6b69469 100644 --- a/client/src/app/shared/shared-user-settings/user-video-settings.component.ts +++ b/client/src/app/shared/shared-user-settings/user-video-settings.component.ts | |||
@@ -34,7 +34,7 @@ export class UserVideoSettingsComponent extends FormReactive implements OnInit, | |||
34 | ngOnInit () { | 34 | ngOnInit () { |
35 | this.buildForm({ | 35 | this.buildForm({ |
36 | nsfwPolicy: null, | 36 | nsfwPolicy: null, |
37 | webTorrentEnabled: null, | 37 | p2pEnabled: null, |
38 | autoPlayVideo: null, | 38 | autoPlayVideo: null, |
39 | autoPlayNextVideo: null, | 39 | autoPlayNextVideo: null, |
40 | videoLanguages: null | 40 | videoLanguages: null |
@@ -48,7 +48,7 @@ export class UserVideoSettingsComponent extends FormReactive implements OnInit, | |||
48 | 48 | ||
49 | this.form.patchValue({ | 49 | this.form.patchValue({ |
50 | nsfwPolicy: this.user.nsfwPolicy || this.defaultNSFWPolicy, | 50 | nsfwPolicy: this.user.nsfwPolicy || this.defaultNSFWPolicy, |
51 | webTorrentEnabled: this.user.webTorrentEnabled, | 51 | p2pEnabled: this.user.p2pEnabled, |
52 | autoPlayVideo: this.user.autoPlayVideo === true, | 52 | autoPlayVideo: this.user.autoPlayVideo === true, |
53 | autoPlayNextVideo: this.user.autoPlayNextVideo, | 53 | autoPlayNextVideo: this.user.autoPlayNextVideo, |
54 | videoLanguages: this.user.videoLanguages | 54 | videoLanguages: this.user.videoLanguages |
@@ -65,7 +65,7 @@ export class UserVideoSettingsComponent extends FormReactive implements OnInit, | |||
65 | 65 | ||
66 | updateDetails (onlyKeys?: string[]) { | 66 | updateDetails (onlyKeys?: string[]) { |
67 | const nsfwPolicy = this.form.value['nsfwPolicy'] | 67 | const nsfwPolicy = this.form.value['nsfwPolicy'] |
68 | const webTorrentEnabled = this.form.value['webTorrentEnabled'] | 68 | const p2pEnabled = this.form.value['p2pEnabled'] |
69 | const autoPlayVideo = this.form.value['autoPlayVideo'] | 69 | const autoPlayVideo = this.form.value['autoPlayVideo'] |
70 | const autoPlayNextVideo = this.form.value['autoPlayNextVideo'] | 70 | const autoPlayNextVideo = this.form.value['autoPlayNextVideo'] |
71 | 71 | ||
@@ -80,7 +80,7 @@ export class UserVideoSettingsComponent extends FormReactive implements OnInit, | |||
80 | 80 | ||
81 | let details: UserUpdateMe = { | 81 | let details: UserUpdateMe = { |
82 | nsfwPolicy, | 82 | nsfwPolicy, |
83 | webTorrentEnabled, | 83 | p2pEnabled, |
84 | autoPlayVideo, | 84 | autoPlayVideo, |
85 | autoPlayNextVideo, | 85 | autoPlayNextVideo, |
86 | videoLanguages | 86 | videoLanguages |