mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 03:01:10 +03:00
Merge pull request #1210 from automaton82/FEATURE-hidden-node-param
Adding ability to hide node param from UI
This commit is contained in:
@@ -72,6 +72,7 @@ export interface INodeParams {
|
|||||||
fileType?: string
|
fileType?: string
|
||||||
additionalParams?: boolean
|
additionalParams?: boolean
|
||||||
loadMethod?: string
|
loadMethod?: string
|
||||||
|
hidden?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface INodeExecutionData {
|
export interface INodeExecutionData {
|
||||||
|
|||||||
@@ -207,9 +207,11 @@ const CanvasNode = ({ data }) => {
|
|||||||
{data.inputAnchors.map((inputAnchor, index) => (
|
{data.inputAnchors.map((inputAnchor, index) => (
|
||||||
<NodeInputHandler key={index} inputAnchor={inputAnchor} data={data} />
|
<NodeInputHandler key={index} inputAnchor={inputAnchor} data={data} />
|
||||||
))}
|
))}
|
||||||
{data.inputParams.map((inputParam, index) => (
|
{data.inputParams
|
||||||
<NodeInputHandler key={index} inputParam={inputParam} data={data} />
|
.filter((inputParam) => !inputParam.hidden)
|
||||||
))}
|
.map((inputParam, index) => (
|
||||||
|
<NodeInputHandler key={index} inputParam={inputParam} data={data} />
|
||||||
|
))}
|
||||||
{data.inputParams.find((param) => param.additionalParams) && (
|
{data.inputParams.find((param) => param.additionalParams) && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in New Issue
Block a user