mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 16:02:28 +00:00
diff
This commit is contained in:
@@ -24,6 +24,7 @@ export type FlowBuilderWhitelabelCustomUi = {
|
||||
triggers?: boolean
|
||||
flowNode?: boolean
|
||||
hub?: boolean
|
||||
hubCode?: boolean
|
||||
graph?: { aiBuilder?: boolean; dataflow?: boolean }
|
||||
stepInputs?: { ai?: boolean }
|
||||
stepAdvancedSettings?: boolean
|
||||
|
||||
@@ -287,7 +287,7 @@
|
||||
|
||||
<div class="min-h-0 flex-grow" id="flow-editor-editor">
|
||||
<Splitpanes horizontal>
|
||||
<Pane bind:size={editorPanelSize} minSize={20}>
|
||||
<Pane bind:size={editorPanelSize} minSize={10}>
|
||||
{#if flowModule.value.type === 'rawscript'}
|
||||
{#if !noEditor}
|
||||
{#key flowModule.id}
|
||||
@@ -341,7 +341,7 @@
|
||||
{/key}
|
||||
{/if}
|
||||
{:else if flowModule.value.type === 'script'}
|
||||
{#if !noEditor}
|
||||
{#if !noEditor && (customUi?.hubCode != false || flowModule?.value?.path?.startsWith('hub/'))}
|
||||
<div class="border-t">
|
||||
{#key forceReload}
|
||||
<FlowModuleScript
|
||||
|
||||
@@ -49,8 +49,16 @@
|
||||
|
||||
let flowTutorials: FlowTutorials | undefined = undefined
|
||||
|
||||
const { selectedId, moving, history, flowStateStore, flowStore, flowInputsStore, pathStore } =
|
||||
getContext<FlowEditorContext>('FlowEditorContext')
|
||||
const {
|
||||
customUi,
|
||||
selectedId,
|
||||
moving,
|
||||
history,
|
||||
flowStateStore,
|
||||
flowStore,
|
||||
flowInputsStore,
|
||||
pathStore
|
||||
} = getContext<FlowEditorContext>('FlowEditorContext')
|
||||
const { primarySchedule, triggersCount } = getContext<TriggerContext>('TriggerContext')
|
||||
|
||||
const { flowPropPickerConfig } = getContext<PropPickerContext>('PropPickerContext')
|
||||
@@ -305,7 +313,7 @@
|
||||
<FlowGraphV2
|
||||
earlyStop={$flowStore.value?.skip_expr !== undefined}
|
||||
cache={$flowStore.value?.cache_ttl !== undefined}
|
||||
triggerNode={true}
|
||||
triggerNode={customUi?.triggers != false}
|
||||
path={$pathStore}
|
||||
{newFlow}
|
||||
{disableAi}
|
||||
|
||||
@@ -179,7 +179,7 @@ export function graphBuilder(
|
||||
data: {
|
||||
eventHandlers: eventHandlers,
|
||||
modules: modules,
|
||||
hasPreprocessor: !!preprocessorModule,
|
||||
hasPreprocessor: !!preprocessorModule || flowPathForTriggerNode == undefined,
|
||||
...extra
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user