diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-21 10:47:56 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-21 10:47:56 +0100 |
commit | 4ee6a8b13edb0dd6186139f3a6589b06139f464b (patch) | |
tree | cfde5fc6215500a94047037e58861a44adaa5eab /client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | |
parent | 7738273b808f0ff1494f18c4cc13553505e6ac6d (diff) | |
download | PeerTube-4ee6a8b13edb0dd6186139f3a6589b06139f464b.tar.gz PeerTube-4ee6a8b13edb0dd6186139f3a6589b06139f464b.tar.zst PeerTube-4ee6a8b13edb0dd6186139f3a6589b06139f464b.zip |
Fix admin config form for auto follow
Diffstat (limited to 'client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | 6 |
1 files changed, 4 insertions, 2 deletions
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 1bc907b73..c88e81c01 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 | |||
@@ -24,8 +24,6 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
24 | languageItems: SelectItem[] = [] | 24 | languageItems: SelectItem[] = [] |
25 | categoryItems: SelectItem[] = [] | 25 | categoryItems: SelectItem[] = [] |
26 | 26 | ||
27 | isAutoFollowIndexEnabled = false | ||
28 | |||
29 | private serverConfig: ServerConfig | 27 | private serverConfig: ServerConfig |
30 | 28 | ||
31 | constructor ( | 29 | constructor ( |
@@ -236,6 +234,10 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
236 | return this.form.value['signup']['enabled'] === true | 234 | return this.form.value['signup']['enabled'] === true |
237 | } | 235 | } |
238 | 236 | ||
237 | isAutoFollowIndexEnabled () { | ||
238 | return this.form.value['followings']['instance']['autoFollowIndex']['enabled'] === true | ||
239 | } | ||
240 | |||
239 | async formValidated () { | 241 | async formValidated () { |
240 | this.configService.updateCustomConfig(this.form.getRawValue()) | 242 | this.configService.updateCustomConfig(this.form.getRawValue()) |
241 | .subscribe( | 243 | .subscribe( |