X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-user-settings%2Fuser-video-settings.component.ts;h=7d6b69469c7c44e86d933586ae8059847a62df45;hb=474542d7ac60f7860daf9ea34d1c31968f43ab29;hp=0cd889a8a3a27d885c6310070ec01ab2a5aadf26;hpb=fdec51e3846d50e3375612a6820ed3ab0b5fcd25;p=github%2FChocobozzz%2FPeerTube.git 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, ngOnInit () { this.buildForm({ nsfwPolicy: null, - webTorrentEnabled: null, + p2pEnabled: null, autoPlayVideo: null, autoPlayNextVideo: null, videoLanguages: null @@ -48,7 +48,7 @@ export class UserVideoSettingsComponent extends FormReactive implements OnInit, this.form.patchValue({ nsfwPolicy: this.user.nsfwPolicy || this.defaultNSFWPolicy, - webTorrentEnabled: this.user.webTorrentEnabled, + p2pEnabled: this.user.p2pEnabled, autoPlayVideo: this.user.autoPlayVideo === true, autoPlayNextVideo: this.user.autoPlayNextVideo, videoLanguages: this.user.videoLanguages @@ -65,7 +65,7 @@ export class UserVideoSettingsComponent extends FormReactive implements OnInit, updateDetails (onlyKeys?: string[]) { const nsfwPolicy = this.form.value['nsfwPolicy'] - const webTorrentEnabled = this.form.value['webTorrentEnabled'] + const p2pEnabled = this.form.value['p2pEnabled'] const autoPlayVideo = this.form.value['autoPlayVideo'] const autoPlayNextVideo = this.form.value['autoPlayNextVideo'] @@ -80,7 +80,7 @@ export class UserVideoSettingsComponent extends FormReactive implements OnInit, let details: UserUpdateMe = { nsfwPolicy, - webTorrentEnabled, + p2pEnabled, autoPlayVideo, autoPlayNextVideo, videoLanguages