From cc1659f807fcc9c01e54d79e21c9881717140113 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 e3eb0b67f4..69f0005659 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 bfe0590912..fb010023b9 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 cbe2d7ff69..a46a44b06a 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 d09cd0ff2b..2b94d9e425 100644 --- a/packages/standard-components/src/Login.svelte +++ b/packages/standard-components/src/Login.svelte @@ -1,9 +1,9 @@