mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-30 00:16:53 +00:00
feat(frontend): Small UI fixes (#1026)
This commit is contained in:
+7
-3
@@ -61,14 +61,18 @@
|
||||
let scriptCreationDrawer: Drawer | undefined = undefined
|
||||
|
||||
$: selectedScriptName = undefined as string | undefined
|
||||
$: scriptsUsedByComponents = new Map<string, string[]>()
|
||||
$: scriptsUsedByComponents = new Map<string, string>()
|
||||
$: {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user