diff options
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html | 10 | ||||
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | 6 |
2 files changed, 15 insertions, 1 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html index 18ba7ba06..c7ddaaf01 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html | |||
@@ -37,6 +37,16 @@ | |||
37 | </div> | 37 | </div> |
38 | </div> | 38 | </div> |
39 | 39 | ||
40 | <div class="form-group"> | ||
41 | <label for="instanceDefaultClientRoute">Default client route</label> | ||
42 | <div class="peertube-select-container"> | ||
43 | <select id="instanceDefaultClientRoute" formControlName="instanceDefaultClientRoute"> | ||
44 | <option value="/videos/trending">Videos Trending</option> | ||
45 | <option value="/videos/recently-added">Videos Recently Added</option> | ||
46 | </select> | ||
47 | </div> | ||
48 | </div> | ||
49 | |||
40 | <div class="inner-form-title">Cache</div> | 50 | <div class="inner-form-title">Cache</div> |
41 | 51 | ||
42 | <div class="form-group"> | 52 | <div class="form-group"> |
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 cf93b4060..c38bc326a 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 | |||
@@ -46,6 +46,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
46 | instanceName: '', | 46 | instanceName: '', |
47 | instanceDescription: '', | 47 | instanceDescription: '', |
48 | instanceTerms: '', | 48 | instanceTerms: '', |
49 | instanceDefaultClientRoute: '', | ||
49 | cachePreviewsSize: '', | 50 | cachePreviewsSize: '', |
50 | signupLimit: '', | 51 | signupLimit: '', |
51 | adminEmail: '', | 52 | adminEmail: '', |
@@ -85,6 +86,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
85 | instanceName: [ '', INSTANCE_NAME.VALIDATORS ], | 86 | instanceName: [ '', INSTANCE_NAME.VALIDATORS ], |
86 | instanceDescription: [ '' ], | 87 | instanceDescription: [ '' ], |
87 | instanceTerms: [ '' ], | 88 | instanceTerms: [ '' ], |
89 | instanceDefaultClientRoute: [ '' ], | ||
88 | cachePreviewsSize: [ '', CACHE_PREVIEWS_SIZE.VALIDATORS ], | 90 | cachePreviewsSize: [ '', CACHE_PREVIEWS_SIZE.VALIDATORS ], |
89 | signupEnabled: [ ], | 91 | signupEnabled: [ ], |
90 | signupLimit: [ '', SIGNUP_LIMIT.VALIDATORS ], | 92 | signupLimit: [ '', SIGNUP_LIMIT.VALIDATORS ], |
@@ -153,11 +155,12 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
153 | if (confirmRes === false) return | 155 | if (confirmRes === false) return |
154 | } | 156 | } |
155 | 157 | ||
156 | const data = { | 158 | const data: CustomConfig = { |
157 | instance: { | 159 | instance: { |
158 | name: this.form.value['instanceName'], | 160 | name: this.form.value['instanceName'], |
159 | description: this.form.value['instanceDescription'], | 161 | description: this.form.value['instanceDescription'], |
160 | terms: this.form.value['instanceTerms'], | 162 | terms: this.form.value['instanceTerms'], |
163 | defaultClientRoute: this.form.value['instanceDefaultClientRoute'], | ||
161 | customizations: { | 164 | customizations: { |
162 | javascript: this.form.value['customizationJavascript'], | 165 | javascript: this.form.value['customizationJavascript'], |
163 | css: this.form.value['customizationCSS'] | 166 | css: this.form.value['customizationCSS'] |
@@ -213,6 +216,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
213 | instanceName: this.customConfig.instance.name, | 216 | instanceName: this.customConfig.instance.name, |
214 | instanceDescription: this.customConfig.instance.description, | 217 | instanceDescription: this.customConfig.instance.description, |
215 | instanceTerms: this.customConfig.instance.terms, | 218 | instanceTerms: this.customConfig.instance.terms, |
219 | instanceDefaultClientRoute: this.customConfig.instance.defaultClientRoute, | ||
216 | cachePreviewsSize: this.customConfig.cache.previews.size, | 220 | cachePreviewsSize: this.customConfig.cache.previews.size, |
217 | signupEnabled: this.customConfig.signup.enabled, | 221 | signupEnabled: this.customConfig.signup.enabled, |
218 | signupLimit: this.customConfig.signup.limit, | 222 | signupLimit: this.customConfig.signup.limit, |