diff options
Diffstat (limited to 'client/src/app/menu/menu.component.ts')
-rw-r--r-- | client/src/app/menu/menu.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts index d5ddc29cb..983f0a938 100644 --- a/client/src/app/menu/menu.component.ts +++ b/client/src/app/menu/menu.component.ts | |||
@@ -196,9 +196,9 @@ export class MenuComponent implements OnInit { | |||
196 | 196 | ||
197 | toggleUseP2P () { | 197 | toggleUseP2P () { |
198 | if (!this.user) return | 198 | if (!this.user) return |
199 | this.user.webTorrentEnabled = !this.user.webTorrentEnabled | 199 | this.user.p2pEnabled = !this.user.p2pEnabled |
200 | 200 | ||
201 | this.userService.updateMyProfile({ webTorrentEnabled: this.user.webTorrentEnabled }) | 201 | this.userService.updateMyProfile({ p2pEnabled: this.user.p2pEnabled }) |
202 | .subscribe(() => this.authService.refreshUserInformation()) | 202 | .subscribe(() => this.authService.refreshUserInformation()) |
203 | } | 203 | } |
204 | 204 | ||