+
@@ -67,12 +67,20 @@
-
- Mobile
-
-
- Desktop
-
+
+
diff --git a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanel.svelte b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanel.svelte
index 5f2a8f1c23..0bc13879a7 100644
--- a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanel.svelte
+++ b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/InlineScriptsPanel.svelte
@@ -61,14 +61,18 @@
let scriptCreationDrawer: Drawer | undefined = undefined
$: selectedScriptName = undefined as string | undefined
- $: scriptsUsedByComponents = new Map
()
+ $: scriptsUsedByComponents = new Map()
$: {
scriptsUsedByComponents.clear()
$app.grid
- .filter((gridComponent) => gridComponent.data.type !== 'runnable')
+ .filter((gridComponent) => gridComponent)
.forEach((gridComponent) => {
- if (gridComponent.data.componentInput.runnable !== undefined) {
+ if (
+ gridComponent.data?.componentInput?.type === 'runnable' &&
+ gridComponent.data.componentInput.runnable !== undefined &&
+ gridComponent.data.componentInput.runnable.type === 'runnableByName'
+ ) {
scriptsUsedByComponents.set(
gridComponent.data.componentInput.runnable.inlineScriptName,
gridComponent.data.id
diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte
index 5e3e6f18a6..f4f7cfd0be 100644
--- a/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte
+++ b/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte
@@ -34,7 +34,7 @@
import gridHelp from 'svelte-grid/build/helper/index.mjs'
import { gridColumns } from '../../gridUtils'
import InlineScriptEditorDrawer from '../inlineScriptsPanel/InlineScriptEditorDrawer.svelte'
- import { faEdge } from '@fortawesome/free-brands-svg-icons'
+ import Tooltip from '$lib/components/Tooltip.svelte'
export let component: AppComponent | undefined
export let onDelete: (() => void) | undefined = undefined
@@ -186,12 +186,12 @@
Object.keys(component.componentInput.fields ?? {}).length
})`}
>
- {#if component.type === 'buttoncomponent'}
-
+
+
The runnable inputs of a button component are not settable by the user. They must
be defined statically or connected.
-
- {/if}
+
+
-
-
-
- Horizontal alignment
+ Horizontal
@@ -245,7 +231,7 @@
{#if component.type !== 'formcomponent'}
- Vertical alignment
+ Vertical
diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/Recompute.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/Recompute.svelte
index 0826613b4c..6997f43f39 100644
--- a/frontend/src/lib/components/apps/editor/settingsPanel/Recompute.svelte
+++ b/frontend/src/lib/components/apps/editor/settingsPanel/Recompute.svelte
@@ -24,7 +24,7 @@
- {#if Object.keys($runnableComponents ?? {}).length > 0}
+ {#if Object.keys($runnableComponents ?? {}).filter((id) => id !== ownId).length > 0}
{:else}
- No components to recompute
+ No components to recompute. Create one and select it here.
{/if}
diff --git a/frontend/src/lib/components/apps/utils.ts b/frontend/src/lib/components/apps/utils.ts
index bc245125c4..4a05591c79 100644
--- a/frontend/src/lib/components/apps/utils.ts
+++ b/frontend/src/lib/components/apps/utils.ts
@@ -14,7 +14,7 @@ import {
Table2,
TextCursorInput,
Type,
- FolderInput
+ ToggleLeft
} from 'lucide-svelte'
import type { AppInputs, InputType } from './inputType'
import type { AppComponent } from './types'
@@ -79,7 +79,7 @@ export const displayData: Record