From a2de6c7d5f57cc48893572763b9314e30a910e8d Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 23 Mar 2023 21:10:18 +0100 Subject: [PATCH] recompute others for modal work even if no script attached --- .../apps/components/buttons/AppFormButton.svelte | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/apps/components/buttons/AppFormButton.svelte b/frontend/src/lib/components/apps/components/buttons/AppFormButton.svelte index d4a0a347d9..b7accfffa3 100644 --- a/frontend/src/lib/components/apps/components/buttons/AppFormButton.svelte +++ b/frontend/src/lib/components/apps/components/buttons/AppFormButton.svelte @@ -70,6 +70,7 @@ $: loading = isLoading && ownClick $: css = concatCustomCss($app?.css?.formbuttoncomponent, customCss) + let runnableWrapper: RunnableWrapper {#each Object.keys(components['formbuttoncomponent'].initialData.configuration) as key (key)} @@ -95,6 +96,7 @@ }} > { - await runnableComponent?.runComponent() - + if (!runnableComponent) { + runnableWrapper.onSuccess() + } else { + await runnableComponent?.runComponent() + } open = false }} size="xs"