diff --git a/packages/builder/src/components/start/CreateAppModal.svelte b/packages/builder/src/components/start/CreateAppModal.svelte index b5fed9cdc1..83ed089006 100644 --- a/packages/builder/src/components/start/CreateAppModal.svelte +++ b/packages/builder/src/components/start/CreateAppModal.svelte @@ -118,14 +118,17 @@ if ($values.url) { data.append("url", $values.url.trim()) } - data.append("useTemplate", template != null) - if (template) { - data.append("templateName", template.name) - data.append("templateKey", template.key) - data.append("templateFile", $values.file) + + if (template?.fromFile) { + data.append("useTemplate", true) + data.append("fileToImport", $values.file) if ($values.encryptionPassword?.trim()) { data.append("encryptionPassword", $values.encryptionPassword.trim()) } + } else if (template) { + data.append("useTemplate", true) + data.append("templateName", template.name) + data.append("templateKey", template.key) } // Create App diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/new/_components/componentStructure.json b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/new/_components/componentStructure.json index ff58a66221..84e1bd75b8 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/new/_components/componentStructure.json +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/new/_components/componentStructure.json @@ -14,7 +14,7 @@ { "name": "Layout", "icon": "ClassicGridView", - "children": ["container", "section", "sidepanel", "modal"] + "children": ["container", "sidepanel", "modal"] }, { "name": "Data", diff --git a/packages/client/src/components/app/Section.svelte b/packages/client/src/components/app/deprecated/Section.svelte similarity index 97% rename from packages/client/src/components/app/Section.svelte rename to packages/client/src/components/app/deprecated/Section.svelte index b86c5cc352..245d280dc0 100644 --- a/packages/client/src/components/app/Section.svelte +++ b/packages/client/src/components/app/deprecated/Section.svelte @@ -1,6 +1,6 @@