From 8fc00ee78da46359c835b775b20b179c9a129d0b Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Mon, 6 Jul 2020 16:24:44 +0100 Subject: [PATCH] Form: success notifier on save + configurable button text --- .../userInterface/temporaryPanelStructure.js | 10 +++ packages/standard-components/components.json | 6 +- .../standard-components/src/DataForm.svelte | 58 +++++++++++++++-- .../src/DataFormWide.svelte | 62 +++++++++++++++++-- 4 files changed, 122 insertions(+), 14 deletions(-) diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index 69f0005659..f63f85eb1d 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -350,6 +350,11 @@ export default { key: "title", control: Input, }, + { + label: "Button Text", + key: "buttonText", + control: Input, + }, ], }, template: { @@ -375,6 +380,11 @@ export default { key: "title", control: Input, }, + { + label: "Button Text", + key: "buttonText", + control: Input, + }, ], }, }, diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index a46a44b06a..2de6c9398f 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -208,7 +208,8 @@ "data": true, "props": { "model": "models", - "title": "string" + "title": "string", + "buttonText": "string" } }, "dataformwide": { @@ -216,7 +217,8 @@ "data": true, "props": { "model": "models", - "title": "string" + "title": "string", + "buttonText": "string" } }, "datalist": { diff --git a/packages/standard-components/src/DataForm.svelte b/packages/standard-components/src/DataForm.svelte index 4e59e6b911..bbfa5e03ba 100644 --- a/packages/standard-components/src/DataForm.svelte +++ b/packages/standard-components/src/DataForm.svelte @@ -1,9 +1,11 @@