From b63c607b92fd3ec62e370b73e398062bcf317738 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 21 Jul 2023 11:07:49 +0200 Subject: [PATCH] Fix updating P2P setting --- client/src/app/menu/menu.component.html | 4 ++-- .../src/app/shared/shared-forms/input-switch.component.html | 2 +- client/src/app/shared/shared-forms/input-switch.component.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index 6024c7894..d4b2b3330 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html @@ -57,11 +57,11 @@ {{ nsfwPolicy }} - diff --git a/client/src/app/shared/shared-forms/input-switch.component.html b/client/src/app/shared/shared-forms/input-switch.component.html index 4017d4aa5..2def02a05 100644 --- a/client/src/app/shared/shared-forms/input-switch.component.html +++ b/client/src/app/shared/shared-forms/input-switch.component.html @@ -1,2 +1,2 @@ - + diff --git a/client/src/app/shared/shared-forms/input-switch.component.ts b/client/src/app/shared/shared-forms/input-switch.component.ts index abb96de62..e019029c5 100644 --- a/client/src/app/shared/shared-forms/input-switch.component.ts +++ b/client/src/app/shared/shared-forms/input-switch.component.ts @@ -16,6 +16,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' export class InputSwitchComponent implements ControlValueAccessor { @Input() checked = false @Input() inputName: string + @Input() preventUpdate = false propagateChange = (_: any) => { /* empty */ }