aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
diff options
context:
space:
mode:
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.ts6
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(