From 4ee6a8b13edb0dd6186139f3a6589b06139f464b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 21 Jan 2020 10:47:56 +0100 Subject: Fix admin config form for auto follow --- .../config/edit-custom-config/edit-custom-config.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts') 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 { languageItems: SelectItem[] = [] categoryItems: SelectItem[] = [] - isAutoFollowIndexEnabled = false - private serverConfig: ServerConfig constructor ( @@ -236,6 +234,10 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { return this.form.value['signup']['enabled'] === true } + isAutoFollowIndexEnabled () { + return this.form.value['followings']['instance']['autoFollowIndex']['enabled'] === true + } + async formValidated () { this.configService.updateCustomConfig(this.form.getRawValue()) .subscribe( -- cgit v1.2.3