From 16a173bbc98509705105eec8189fa5543d9673c7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 18 Nov 2020 15:55:19 +0100 Subject: [PATCH] Automatically enable videos auto block on signup --- .../edit-custom-config.component.html | 2 ++ .../edit-custom-config.component.scss | 5 ++++ .../edit-custom-config.component.ts | 28 +++++++++++++++++++ 3 files changed, 35 insertions(+) diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html index f8f379d47..e0361fbfd 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html @@ -351,6 +351,8 @@ > ⚠️ This functionality requires a lot of attention and extra moderation. + + { + if (oldValue !== true && newValue === true) { + // tslint:disable:max-line-length + this.signupAlertMessage = $localize`You enabled signup: we automatically enabled the "Block new videos automatically" checkbox of the "Videos" section just below.` + + this.form.patchValue({ + autoBlacklist: { + videos: { + ofUsers: { + enabled: true + } + } + } + }) + } + }) + } } -- 2.41.0