From 901637bb87f5eb0518fb7ca69d98b53ed918339e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 1 Mar 2018 13:57:29 +0100 Subject: Add ability to change the homepage --- .../edit-custom-config/edit-custom-config.component.html | 10 ++++++++++ .../config/edit-custom-config/edit-custom-config.component.ts | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'client/src/app/+admin/config/edit-custom-config') 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 @@ +
+ +
+ +
+
+
Cache
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 { instanceName: '', instanceDescription: '', instanceTerms: '', + instanceDefaultClientRoute: '', cachePreviewsSize: '', signupLimit: '', adminEmail: '', @@ -85,6 +86,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { instanceName: [ '', INSTANCE_NAME.VALIDATORS ], instanceDescription: [ '' ], instanceTerms: [ '' ], + instanceDefaultClientRoute: [ '' ], cachePreviewsSize: [ '', CACHE_PREVIEWS_SIZE.VALIDATORS ], signupEnabled: [ ], signupLimit: [ '', SIGNUP_LIMIT.VALIDATORS ], @@ -153,11 +155,12 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { if (confirmRes === false) return } - const data = { + const data: CustomConfig = { instance: { name: this.form.value['instanceName'], description: this.form.value['instanceDescription'], terms: this.form.value['instanceTerms'], + defaultClientRoute: this.form.value['instanceDefaultClientRoute'], customizations: { javascript: this.form.value['customizationJavascript'], css: this.form.value['customizationCSS'] @@ -213,6 +216,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { instanceName: this.customConfig.instance.name, instanceDescription: this.customConfig.instance.description, instanceTerms: this.customConfig.instance.terms, + instanceDefaultClientRoute: this.customConfig.instance.defaultClientRoute, cachePreviewsSize: this.customConfig.cache.previews.size, signupEnabled: this.customConfig.signup.enabled, signupLimit: this.customConfig.signup.limit, -- cgit v1.2.3