From b3817faaf4e6317c0ee96a83114b8dd89139b99a Mon Sep 17 00:00:00 2001 From: frikky Date: Mon, 4 Oct 2021 22:39:59 +0200 Subject: [PATCH] #527: Added disclaimer for localhost on webhook to UI --- frontend/src/views/AngularWorkflow.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index c6d15a56..fb538fcb 100644 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -6736,6 +6736,12 @@ const AngularWorkflow = (props) => { console.log("Couldn't find webhook URI field: ", copyText) } }} + helperText={workflow.triggers[selectedTriggerIndex].parameters[0].value !== undefined && workflow.triggers[selectedTriggerIndex].parameters[0].value !== null && (workflow.triggers[selectedTriggerIndex].parameters[0].value.includes("localhost") || workflow.triggers[selectedTriggerIndex].parameters[0].value.includes("127.0.0.1"))? + + PS: This does NOT work with localhost. Use your local IP instead. + + : null + } InputProps={{ style:{ color: "white",