mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-10 08:07:03 +00:00
fix: support dyn select for sub flow (#6835)
* support subflow * update * Update frontend/src/lib/common.ts Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> --------- Co-authored-by: Ruben Fiszel <ruben@windmill.dev> Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
claude[bot]
Ruben Fiszel
parent
e5ea3e4a57
commit
149d2addfe
@@ -1,4 +1,4 @@
|
||||
import type { Script } from './gen'
|
||||
import type { Script, ScriptLang } from './gen'
|
||||
|
||||
export type OwnerKind = 'group' | 'user' | 'folder'
|
||||
|
||||
@@ -109,6 +109,8 @@ export function modalToSchema(schema: ModalSchemaProperty): SchemaProperty {
|
||||
export type Schema = {
|
||||
$schema: string | undefined
|
||||
type: string
|
||||
"x-windmill-dyn-select-code"?: string
|
||||
"x-windmill-dyn-select-lang"?: ScriptLang
|
||||
properties: { [name: string]: SchemaProperty }
|
||||
order?: string[]
|
||||
required: string[]
|
||||
|
||||
@@ -325,6 +325,13 @@
|
||||
lang: value.language
|
||||
}
|
||||
break
|
||||
case 'flow':
|
||||
helperScript = {
|
||||
source: 'deployed',
|
||||
path: value.path,
|
||||
runnable_kind: 'flow'
|
||||
}
|
||||
break
|
||||
default:
|
||||
helperScript = undefined
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user