From ef88d0f0aba8ef488c8f471576693964dc62f46a Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 14 Oct 2022 11:28:39 +0200 Subject: [PATCH] fix: load after creation, optional steps --- .../functions/createFunction.svelte | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/routes/console/project-[project]/functions/createFunction.svelte b/src/routes/console/project-[project]/functions/createFunction.svelte index 47fb363be..b18299e61 100644 --- a/src/routes/console/project-[project]/functions/createFunction.svelte +++ b/src/routes/console/project-[project]/functions/createFunction.svelte @@ -33,7 +33,7 @@ message: 'Function has been created', type: 'success' }); - functionList.load([Query.limit(6), Query.offset(0)]); + functionList.load([Query.limit(6), Query.offset(0), Query.orderDesc('$createdAt')]); wizard.hide(); } catch (error) { addNotification({ @@ -63,19 +63,23 @@ }); stepsComponents.set(2, { label: 'Execute access', - component: Step2 + component: Step2, + optional: true }); stepsComponents.set(3, { label: 'Events', - component: Step3 + component: Step3, + optional: true }); stepsComponents.set(4, { label: 'Scheduling', - component: Step4 + component: Step4, + optional: true }); stepsComponents.set(5, { label: 'Variables', - component: Step5 + component: Step5, + optional: true });