diff options
Diffstat (limited to 'client/src/app/+admin/config/edit-custom-config')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html | 17 | ||||
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | 7 |
2 files changed, 24 insertions, 0 deletions
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 6b654c67d..00a0d98f8 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 | |||
@@ -161,6 +161,23 @@ | |||
161 | </ng-container> | 161 | </ng-container> |
162 | </ng-container> | 162 | </ng-container> |
163 | 163 | ||
164 | <div i18n class="inner-form-title">Auto-blacklist</div> | ||
165 | |||
166 | <ng-container formGroupName="autoBlacklist"> | ||
167 | <ng-container formGroupName="videos"> | ||
168 | <ng-container formGroupName="ofUsers"> | ||
169 | |||
170 | <div class="form-group"> | ||
171 | <my-peertube-checkbox | ||
172 | inputName="autoBlacklistVideosOfUsersEnabled" formControlName="enabled" | ||
173 | i18n-labelText labelText="New videos of users automatically blacklisted enabled" | ||
174 | ></my-peertube-checkbox> | ||
175 | </div> | ||
176 | |||
177 | </ng-container> | ||
178 | </ng-container> | ||
179 | </ng-container> | ||
180 | |||
164 | <div i18n class="inner-form-title">Administrator</div> | 181 | <div i18n class="inner-form-title">Administrator</div> |
165 | 182 | ||
166 | <div class="form-group" formGroupName="admin"> | 183 | <div class="form-group" formGroupName="admin"> |
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts index 45605e0fe..d8eb55da7 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | |||
@@ -117,6 +117,13 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
117 | threads: this.customConfigValidatorsService.TRANSCODING_THREADS, | 117 | threads: this.customConfigValidatorsService.TRANSCODING_THREADS, |
118 | allowAdditionalExtensions: null, | 118 | allowAdditionalExtensions: null, |
119 | resolutions: {} | 119 | resolutions: {} |
120 | }, | ||
121 | autoBlacklist: { | ||
122 | videos: { | ||
123 | ofUsers: { | ||
124 | enabled: null | ||
125 | } | ||
126 | } | ||
120 | } | 127 | } |
121 | } | 128 | } |
122 | 129 | ||