aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/input-switch.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-24 17:22:40 +0200
committerChocobozzz <me@florianbigard.com>2023-05-24 17:22:40 +0200
commitf9735a9e88ff59dae8c9f6b8a20576ca8a08902b (patch)
treefca3fe7b02c309616359cb6799396f57029a4f77 /client/src/app/shared/shared-forms/input-switch.component.ts
parent431ebbd5e40cdae5326bcd631d9e086cfa4eae1e (diff)
downloadPeerTube-f9735a9e88ff59dae8c9f6b8a20576ca8a08902b.tar.gz
PeerTube-f9735a9e88ff59dae8c9f6b8a20576ca8a08902b.tar.zst
PeerTube-f9735a9e88ff59dae8c9f6b8a20576ca8a08902b.zip
Fix notification settings
Diffstat (limited to 'client/src/app/shared/shared-forms/input-switch.component.ts')
-rw-r--r--client/src/app/shared/shared-forms/input-switch.component.ts2
1 files changed, 2 insertions, 0 deletions
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..f340ce81e 100644
--- a/client/src/app/shared/shared-forms/input-switch.component.ts
+++ b/client/src/app/shared/shared-forms/input-switch.component.ts
@@ -20,6 +20,7 @@ export class InputSwitchComponent implements ControlValueAccessor {
20 propagateChange = (_: any) => { /* empty */ } 20 propagateChange = (_: any) => { /* empty */ }
21 21
22 writeValue (checked: boolean) { 22 writeValue (checked: boolean) {
23 console.log(checked)
23 this.checked = checked 24 this.checked = checked
24 } 25 }
25 26
@@ -32,6 +33,7 @@ export class InputSwitchComponent implements ControlValueAccessor {
32 } 33 }
33 34
34 update () { 35 update () {
36 console.log(this.checked)
35 this.checked = !this.checked 37 this.checked = !this.checked
36 this.propagateChange(this.checked) 38 this.propagateChange(this.checked)
37 } 39 }