mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 16:02:28 +00:00
Replaced background scripts by background runnables -> validate PR 165 on wmildocs before (#1523)
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@
|
||||
$app.hiddenInlineScripts[index] = {
|
||||
hidden: true,
|
||||
inlineScript: undefined,
|
||||
name: `Background Script ${index}`,
|
||||
name: `Background Runnable ${index}`,
|
||||
fields: {},
|
||||
type: 'runnableByName',
|
||||
recomputeIds: undefined
|
||||
|
||||
+4
-4
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user