From b81886e5b215ca23295c0cc93d937ec3bb06471a Mon Sep 17 00:00:00 2001
From: loks0n <22452787+loks0n@users.noreply.github.com>
Date: Thu, 27 Jun 2024 15:36:28 +0100
Subject: [PATCH] feat: update manual deployment
---
.../function-[function]/createManual.svelte | 43 +++++++++++--------
1 file changed, 26 insertions(+), 17 deletions(-)
diff --git a/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte b/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte
index 91507d198..fcfa5445b 100644
--- a/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte
+++ b/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte
@@ -11,10 +11,10 @@
export let show = false;
- let active = false;
+ let active = true;
let files: FileList;
- let entrypoint: string = null;
- let buildCommand: string = null;
+ let entrypoint: string = $func.entrypoint;
+ let buildCommand: string = $func.commands;
let error: string = null;
const functionId = $page.params.function;
@@ -31,7 +31,9 @@
);
await invalidate(Dependencies.DEPLOYMENTS);
files = undefined;
- active = false;
+ active = true;
+ entrypoint = $func.entrypoint;
+ buildCommand = $func.commands;
show = false;
dispatch('created');
trackEvent(Submit.DeploymentCreate);
@@ -43,7 +45,10 @@
$: if (!show) {
files = undefined;
- active = false;
+ active = true;
+ entrypoint = $func.entrypoint;
+ buildCommand = $func.commands;
+ show = false;
error = null;
}
@@ -71,12 +76,7 @@
allowedFileExtensions={['gz']}
bind:files
required={true} />
-
+
{#if $func.version !== 'v3'}
@@ -93,26 +93,35 @@
{:else}
- Build settings
+ Overwrite settings(optional)
+
- Overwrite your function configuration for a single deployment or save
- commands for future use.
+ Overwrite your function entrypoint or build commands for a single
+ deployment or save commands for future use.
+
+
+ This deployment will be activated after the build is completed.
+
{/if}
-
- This deployment will be activated after the build is completed.
-