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=e6fc4582b8d7b0f5d7c804046ebc698e888f6765;hb=3da68f0a781ebd893521e2e6fa200280c92ae815;hp=330ab075a91bc1c59d35de5e339f0687e7a02ab9;hpb=28eeb811c40325a28208231324f66f4032e5cf67;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 330ab075a..e6fc4582b 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 @@ -186,6 +186,12 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A languages: null, defaultClientRoute: null, + defaultTrendingRoute: null, + pages: { + hot: { + enabled: null + } + }, customizations: { javascript: null, @@ -364,6 +370,10 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A return this.form.value['followings']['instance']['autoFollowIndex']['enabled'] === true } + isTrendingHotEnabled () { + return this.form.value['instance']['pages']['hot']['enabled'] === true + } + async formValidated () { const value: CustomConfig = this.form.getRawValue()