mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-11 00:06:06 +00:00
implement noInitialize for runnable component
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
export let hideRefreshButton: boolean = false
|
||||
export let hasChildrens: boolean
|
||||
export let allowConcurentRequests = false
|
||||
export let noInitialize = false
|
||||
|
||||
const {
|
||||
worldStore,
|
||||
@@ -555,7 +556,7 @@
|
||||
cb: [...($runnableComponents[id]?.cb ?? []), cancellableRun]
|
||||
}
|
||||
|
||||
if (!$initialized.initializedComponents.includes(id)) {
|
||||
if (!noInitialize && !$initialized.initializedComponents.includes(id)) {
|
||||
$initialized.initializedComponents = [...$initialized.initializedComponents, id]
|
||||
}
|
||||
})
|
||||
|
||||
@@ -241,6 +241,7 @@
|
||||
<slot />
|
||||
{:else if componentInput.type === 'runnable' && isRunnableDefined(componentInput)}
|
||||
<RunnableComponent
|
||||
{noInitialize}
|
||||
{allowConcurentRequests}
|
||||
{refreshOnStart}
|
||||
{extraKey}
|
||||
|
||||
Reference in New Issue
Block a user