{selectedOrganization.sync_features === undefined ||
diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx
index d654d48c..2b9bfa26 100644
--- a/frontend/src/views/AngularWorkflow.jsx
+++ b/frontend/src/views/AngularWorkflow.jsx
@@ -8320,17 +8320,15 @@ const AngularWorkflow = (defaultprops) => {
var injectedData = ;
- if (
- selectedEdge.conditions !== undefined &&
- selectedEdge.conditions !== null &&
- selectedEdge.conditions.length > 0
- ) {
+ if (selectedEdge.conditions !== undefined && selectedEdge.conditions !== null && selectedEdge.conditions.length > 0) {
injectedData = selectedEdge.conditions.map((condition, index) => {
return ConditionHandler(condition, index);
});
}
- // FIXME - remove index
+ // Startnode = dest node
+ const conditionsDisabled = false
+
const conditionId = uuidv4();
return (
@@ -8363,7 +8361,7 @@ const AngularWorkflow = (defaultprops) => {
+
+ {/* Check if dest is the same as start */}
+ {conditionsDisabled ?
+
+ Conditions are unavailable between triggers and the startnode.
+
+ : null}
);
};
diff --git a/frontend/src/views/AppCreator.jsx b/frontend/src/views/AppCreator.jsx
index 42b3b324..dec702ea 100644
--- a/frontend/src/views/AppCreator.jsx
+++ b/frontend/src/views/AppCreator.jsx
@@ -1618,7 +1618,16 @@ const AppCreator = (defaultprops) => {
}
setProjectCategories(all_categories);
+
+ // Rearrange them by which has action_label
+ const firstActions = newActions.filter(data => data.action_label !== undefined && data.action_label !== null && data.action_label !== "No Label")
+ console.log("First actions: ", firstActions)
+ const secondActions = newActions.filter(data => data.action_label === undefined || data.action_label === null || data.action_label === "No Label")
+ newActions = firstActions.concat(secondActions)
setActions(newActions);
+ //data.paths[item.url][item.method.toLowerCase()]["x-label"] = item.action_label
+
+
setFilteredActions(newActions);
setIsAppLoaded(true);
};
@@ -4031,12 +4040,16 @@ const AppCreator = (defaultprops) => {
}}
value={data.action_label}
style={{
+ border: data.action_label === undefined || data.action_label === "No Label" ? "" : `2px solid ${bgColor}`,
+ borderRadius: theme.shape.borderRadius,
backgroundColor: inputColor,
paddingLeft: 10,
color: "white",
height: 30,
- maxWidth: 50,
+ maxWidth: 35,
marginLeft: 10,
+ marginRight: 10,
+ overflow: "hidden",
}}
inputProps={{
name: "Method",
@@ -4048,7 +4061,8 @@ const AppCreator = (defaultprops) => {