aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts
index 56227d11c..29910369a 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts
+++ b/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts
@@ -103,7 +103,7 @@ export class EditBasicConfigurationComponent implements OnInit, OnChanges {
103 signupControl.valueChanges 103 signupControl.valueChanges
104 .pipe(pairwise()) 104 .pipe(pairwise())
105 .subscribe(([ oldValue, newValue ]) => { 105 .subscribe(([ oldValue, newValue ]) => {
106 if (oldValue !== true && newValue === true) { 106 if (oldValue === false && newValue === true) {
107 /* eslint-disable max-len */ 107 /* eslint-disable max-len */
108 this.signupAlertMessage = $localize`You enabled signup: we automatically enabled the "Block new videos automatically" checkbox of the "Videos" section just below.` 108 this.signupAlertMessage = $localize`You enabled signup: we automatically enabled the "Block new videos automatically" checkbox of the "Videos" section just below.`
109 109
@@ -118,5 +118,7 @@ export class EditBasicConfigurationComponent implements OnInit, OnChanges {
118 }) 118 })
119 } 119 }
120 }) 120 })
121
122 signupControl.updateValueAndValidity()
121 } 123 }
122} 124}