From 877a9b1033e30f30ebf65d8b7ca3f82c307437a7 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Mon, 6 Jul 2020 11:30:36 +0100 Subject: [PATCH] Login: allow edit of title & button text --- .../userInterface/temporaryPanelStructure.js | 10 ++++++++++ .../pages/unauthenticated/page.json | 3 ++- packages/standard-components/components.json | 5 +++-- packages/standard-components/src/Login.svelte | 10 ++++++---- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index e3eb0b67f..69f000565 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -303,6 +303,16 @@ export default { key: "logo", control: Input, }, + { + label: "Title", + key: "title", + control: Input, + }, + { + label: "Button Text", + key: "buttonText", + control: Input, + }, ], }, }, diff --git a/packages/server/src/utilities/appDirectoryTemplate/pages/unauthenticated/page.json b/packages/server/src/utilities/appDirectoryTemplate/pages/unauthenticated/page.json index bfe059091..fb010023b 100644 --- a/packages/server/src/utilities/appDirectoryTemplate/pages/unauthenticated/page.json +++ b/packages/server/src/utilities/appDirectoryTemplate/pages/unauthenticated/page.json @@ -28,7 +28,8 @@ "_instanceName": "Login", "inputClass": "", "_children": [], - "name": "{{ name }}", + "title": "Login to {{ name }}", + "buttonText": "Login", "logo": "" } ], diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index cbe2d7ff6..a46a44b06 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -66,7 +66,7 @@ "props": { "logo": "asset", "loginRedirect": "string", - "name": "string", + "title": "string", "usernameLabel": { "type": "string", "default": "Username" @@ -80,7 +80,8 @@ "default": "Login" }, "buttonClass": "string", - "inputClass": "string" + "inputClass": "string", + "buttonText": "string" }, "tags": [ "login", diff --git a/packages/standard-components/src/Login.svelte b/packages/standard-components/src/Login.svelte index d09cd0ff2..2b94d9e42 100644 --- a/packages/standard-components/src/Login.svelte +++ b/packages/standard-components/src/Login.svelte @@ -1,9 +1,9 @@