X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Fconfig%2Fedit-custom-config%2Fedit-custom-config.component.ts;h=c88e81c01453e0ce56961a276e715a5f5acf51b1;hb=9b3078581f2767c7aa2ed5766e1a588ebc0cb875;hp=1bc907b7311e6fca6804d8401789b1e0856fe2f3;hpb=96a4a7c332db933ddd70ed1be5ecf9eae5106637;p=github%2FChocobozzz%2FPeerTube.git 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(