From dd4af346d33db2125b686f88796111afda6bdf26 Mon Sep 17 00:00:00 2001 From: frikky Date: Wed, 28 Oct 2020 05:42:13 +0100 Subject: [PATCH] Fixed options field bug in workflow --- frontend/src/views/AngularWorkflow.jsx | 57 +++++++++++++++----------- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index 7edf7894..8a19fbed 100644 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -2853,7 +2853,7 @@ const AngularWorkflow = (props) => { ))} - } else if (data.variant === "STATIC_VALUE") { + } else if (data.variant === "STATIC_VALUE") { staticcolor = "#f85a3e" } else if (data.variant === "ACTION_RESULT") { // Gets the parents of the current node @@ -3137,6 +3137,8 @@ const AngularWorkflow = (props) => { return (
+ + {data.configuration === true ? { @@ -3149,32 +3151,37 @@ const AngularWorkflow = (props) => {
{data.name}
- -
{ + + {selectedActionParameters[count].options !== undefined && selectedActionParameters[count].options !== null && selectedActionParameters[count].options.length > 0 ? null : +
+ +
{ + e.preventDefault() + changeActionParameterVariant("STATIC_VALUE", count) + }}> + +
+
+  |  + +
{ e.preventDefault() - changeActionParameterVariant("STATIC_VALUE", count) + changeActionParameterVariant("ACTION_RESULT", count) }}> - -
-
-  |  - -
{ - e.preventDefault() - changeActionParameterVariant("ACTION_RESULT", count) - }}> - -
-
-  |  - -
{ - e.preventDefault() - changeActionParameterVariant("WORKFLOW_VARIABLE", count) - }}> - -
-
+ +
+ +  |  + +
{ + e.preventDefault() + changeActionParameterVariant("WORKFLOW_VARIABLE", count) + }}> + +
+
+
+ }
{datafield} {showDropdown && showDropdownNumber === count && data.variant === "STATIC_VALUE" && jsonList.length > 0 ?