From 7889de033ac12cf668ad23cfdd16b3cb36bfd54f Mon Sep 17 00:00:00 2001 From: Henri Courdent <122811744+hcourdent@users.noreply.github.com> Date: Wed, 3 May 2023 16:10:55 +0200 Subject: [PATCH] Replaced background scripts by background runnables -> validate PR 165 on wmildocs before (#1523) --- .../editor/inlineScriptsPanel/InlineScriptsPanel.svelte | 2 +- .../inlineScriptsPanel/InlineScriptsPanelList.svelte | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanel.svelte b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanel.svelte index 42fe3c01ad..9b6a3a62be 100644 --- a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanel.svelte +++ b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanel.svelte @@ -21,7 +21,7 @@ $app.hiddenInlineScripts[index] = { hidden: true, inlineScript: undefined, - name: `Background Script ${index}`, + name: `Background Runnable ${index}`, fields: {}, type: 'runnableByName', recomputeIds: undefined diff --git a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanelList.svelte b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanelList.svelte index 325cdd98e1..0d084f6d35 100644 --- a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanelList.svelte +++ b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanelList.svelte @@ -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 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} -
No background scripts
+
No background runnable
{/if}