From d99bc6a9d428fab7acdf9fa6f3a38781ef8053ae Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Mon, 13 Apr 2020 15:46:16 +0200 Subject: [PATCH] update forms to not submit on button click --- .../src/components/accessLevels/AccessLevelView.svelte | 2 +- .../src/components/actionsAndTriggers/ActionView.svelte | 2 +- .../src/components/actionsAndTriggers/TriggerView.svelte | 7 ++----- packages/builder/src/components/database/FieldView.svelte | 2 +- packages/builder/src/components/database/IndexView.svelte | 2 +- .../database/ModelDataTable/modals/CreateEditRecord.svelte | 2 +- .../database/ModelDataTable/modals/CreateUser.svelte | 2 +- packages/builder/src/components/database/ModelView.svelte | 2 +- .../src/components/userInterface/ComponentSearch.svelte | 2 +- .../userInterface/EventsEditor/EventsEditor.svelte | 2 +- .../builder/src/components/userInterface/PageView.svelte | 2 +- .../builder/src/components/userInterface/PropsView.svelte | 2 +- 12 files changed, 13 insertions(+), 16 deletions(-) diff --git a/packages/builder/src/components/accessLevels/AccessLevelView.svelte b/packages/builder/src/components/accessLevels/AccessLevelView.svelte index aa1833199c..65c5065d8d 100644 --- a/packages/builder/src/components/accessLevels/AccessLevelView.svelte +++ b/packages/builder/src/components/accessLevels/AccessLevelView.svelte @@ -79,7 +79,7 @@ -
+ diff --git a/packages/builder/src/components/actionsAndTriggers/ActionView.svelte b/packages/builder/src/components/actionsAndTriggers/ActionView.svelte index edbd382647..c1eb2f3fd4 100644 --- a/packages/builder/src/components/actionsAndTriggers/ActionView.svelte +++ b/packages/builder/src/components/actionsAndTriggers/ActionView.svelte @@ -68,7 +68,7 @@ - + onFinished() let save = () => { const newTriggersList = [ - ...pipe( - allTriggers, - [filter(t => t !== trigger)] - ), + ...pipe(allTriggers, [filter(t => t !== trigger)]), clonedTrigger, ] @@ -43,7 +40,7 @@ - + - +

Create / Edit View

- +

Settings

{#if $store.errors && $store.errors.length > 0} diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte index 865aca94e5..d8eec31859 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte @@ -70,7 +70,7 @@

Create / Edit Record

- + {#if !record}
diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateUser.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateUser.svelte index 7a42fe05e1..aeb1ea563d 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateUser.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateUser.svelte @@ -28,7 +28,7 @@ } - +
diff --git a/packages/builder/src/components/database/ModelView.svelte b/packages/builder/src/components/database/ModelView.svelte index eef0651285..9e8b185291 100644 --- a/packages/builder/src/components/database/ModelView.svelte +++ b/packages/builder/src/components/database/ModelView.svelte @@ -117,7 +117,7 @@ {/if} - + {#if isChildModel} diff --git a/packages/builder/src/components/userInterface/ComponentSearch.svelte b/packages/builder/src/components/userInterface/ComponentSearch.svelte index 340098880c..b8583075c8 100644 --- a/packages/builder/src/components/userInterface/ComponentSearch.svelte +++ b/packages/builder/src/components/userInterface/ComponentSearch.svelte @@ -13,7 +13,7 @@
- +
- + {#each events as event, index} {#if event.handlers.length > 0}
{$store.currentPageName} - +
The title of your page, displayed in the bowser tab diff --git a/packages/builder/src/components/userInterface/PropsView.svelte b/packages/builder/src/components/userInterface/PropsView.svelte index bbb657ed6b..3edcb8977f 100644 --- a/packages/builder/src/components/userInterface/PropsView.svelte +++ b/packages/builder/src/components/userInterface/PropsView.svelte @@ -24,7 +24,7 @@
- + {#if componentDef} {#each Object.entries(componentDef.props) as [prop_name, prop_def], index}