This commit is contained in:
Ruben Fiszel
2025-01-16 17:02:10 +01:00
parent 4bbb593783
commit cffd2f29cd
4 changed files with 15 additions and 6 deletions
+1
View File
@@ -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
}
}