From a9bfa85d2cdf13670aaced740da5b493fbeddfce Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 15 Dec 2021 15:58:10 +0100 Subject: Add ability for admins to set default p2p policy --- client/src/app/menu/menu.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/menu/menu.component.ts') 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 { toggleUseP2P () { if (!this.user) return - this.user.webTorrentEnabled = !this.user.webTorrentEnabled + this.user.p2pEnabled = !this.user.p2pEnabled - this.userService.updateMyProfile({ webTorrentEnabled: this.user.webTorrentEnabled }) + this.userService.updateMyProfile({ p2pEnabled: this.user.p2pEnabled }) .subscribe(() => this.authService.refreshUserInformation()) } -- cgit v1.2.3