diff options
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 | 10 |
1 files changed, 10 insertions, 0 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 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 | |||
186 | languages: null, | 186 | languages: null, |
187 | 187 | ||
188 | defaultClientRoute: null, | 188 | defaultClientRoute: null, |
189 | defaultTrendingRoute: null, | ||
190 | pages: { | ||
191 | hot: { | ||
192 | enabled: null | ||
193 | } | ||
194 | }, | ||
189 | 195 | ||
190 | customizations: { | 196 | customizations: { |
191 | javascript: null, | 197 | javascript: null, |
@@ -364,6 +370,10 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A | |||
364 | return this.form.value['followings']['instance']['autoFollowIndex']['enabled'] === true | 370 | return this.form.value['followings']['instance']['autoFollowIndex']['enabled'] === true |
365 | } | 371 | } |
366 | 372 | ||
373 | isTrendingHotEnabled () { | ||
374 | return this.form.value['instance']['pages']['hot']['enabled'] === true | ||
375 | } | ||
376 | |||
367 | async formValidated () { | 377 | async formValidated () { |
368 | const value: CustomConfig = this.form.getRawValue() | 378 | const value: CustomConfig = this.form.getRawValue() |
369 | 379 | ||