Replaced background scripts by background runnables -> validate PR 165 on wmildocs before (#1523)

This commit is contained in:
Henri Courdent
2023-05-03 16:10:55 +02:00
committed by GitHub
parent 0443bb6c37
commit 7889de033a
2 changed files with 5 additions and 5 deletions
@@ -21,7 +21,7 @@
$app.hiddenInlineScripts[index] = {
hidden: true,
inlineScript: undefined,
name: `Background Script ${index}`,
name: `Background Runnable ${index}`,
fields: {},
type: 'runnableByName',
recomputeIds: undefined
@@ -44,13 +44,13 @@
}
}
let index = 0
let newScriptPath = `Background Script ${index}`
let newScriptPath = `Background Runnable ${index}`
const names = getAllScriptNames($app)
// Find a name that is not used by any other inline script
while (names.includes(newScriptPath)) {
newScriptPath = `Background Script ${++index}`
newScriptPath = `Background Runnable ${++index}`
}
if (!$app.hiddenInlineScripts) {
@@ -159,7 +159,7 @@
Background runnables
<Tooltip
class="mb-0.5"
documentationLink="https://docs.windmill.dev/docs/apps/app-runnable#background-script"
documentationLink="https://docs.windmill.dev/docs/apps/app-runnable#background-runnable"
>
Background runnables are triggered upon global refresh or when their input changes. The
result of a background runnable can be shared among many components.
@@ -194,7 +194,7 @@
{/if}
{/each}
{:else}
<div class="text-xs text-gray-500">No background scripts</div>
<div class="text-xs text-gray-500">No background runnable</div>
{/if}
</div>
</div>