+ {inputParam && (
+ <>
+ {inputParam.type === 'credential' && (
+ <>
+
+
+
{
+ setCredentialId(newValue)
+ onSelect(newValue)
+ }}
+ onCreateNew={() => addAsyncOption(inputParam.name)}
+ />
+ {credentialId && (
+ editCredential(credentialId)}>
+
+
+ )}
+
+ >
+ )}
+ >
+ )}
+ {showSpecificCredentialDialog && (
+
setShowSpecificCredentialDialog(false)}
+ onConfirm={onConfirmAsyncOption}
+ >
+ )}
+ {showCredentialListDialog && (
+
setShowCredentialListDialog(false)}
+ onCredentialSelected={onCredentialSelected}
+ >
+ )}
+
+ )
+}
+
+CredentialInputHandler.propTypes = {
+ inputParam: PropTypes.object,
+ data: PropTypes.object,
+ onSelect: PropTypes.func,
+ disabled: PropTypes.bool
+}
+
+export default CredentialInputHandler
diff --git a/packages/ui/src/views/canvas/NodeInputHandler.js b/packages/ui/src/views/canvas/NodeInputHandler.js
index ba72a4cef..176df52f8 100644
--- a/packages/ui/src/views/canvas/NodeInputHandler.js
+++ b/packages/ui/src/views/canvas/NodeInputHandler.js
@@ -21,9 +21,14 @@ import { JsonEditorInput } from 'ui-component/json/JsonEditor'
import { TooltipWithParser } from 'ui-component/tooltip/TooltipWithParser'
import ToolDialog from 'views/tools/ToolDialog'
import FormatPromptValuesDialog from 'ui-component/dialog/FormatPromptValuesDialog'
+import CredentialInputHandler from './CredentialInputHandler'
+// utils
import { getInputVariables } from 'utils/genericHelper'
+// const
+import { FLOWISE_CREDENTIAL_ID } from 'store/constant'
+
const EDITABLE_TOOLS = ['selectedTool']
const CustomWidthTooltip = styled(({ className, ...props }) =>