From cef7693026ec2583249b1a92a99305eab47e842b Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Mon, 6 Apr 2020 16:02:45 +0200 Subject: [PATCH] moves createrecord component to use new modal --- .../modals/CreateEditRecord.svelte | 50 +++++++++---------- .../database/[selectedDatabase]/index.svelte | 24 ++++++--- 2 files changed, 42 insertions(+), 32 deletions(-) diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte index 28de857bd1..865aca94e5 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte @@ -67,39 +67,37 @@ } -
+

Create / Edit Record

-
-
- {#if !record} -
- - -
- {/if} - {#each modelFields || [] as field} - - {/each} - -
- Cancel - Save -
-
+
+ {#if !record} +
+ + +
+ {/if} + {#each modelFields || [] as field} + + {/each} +
+
+ Cancel + Save +
diff --git a/packages/builder/src/pages/[application]/backend/database/[selectedDatabase]/index.svelte b/packages/builder/src/pages/[application]/backend/database/[selectedDatabase]/index.svelte index 19eb2da8a4..e524c3327b 100644 --- a/packages/builder/src/pages/[application]/backend/database/[selectedDatabase]/index.svelte +++ b/packages/builder/src/pages/[application]/backend/database/[selectedDatabase]/index.svelte @@ -1,8 +1,25 @@