@@ -21857,7 +22401,6 @@ const AngularWorkflow = (defaultprops) => {
disabled={newVariableName.length === 0}
variant="contained"
onClick={() => {
- console.log("VARIABLES! ", newVariableName);
if (
workflow.execution_variables === undefined ||
workflow.execution_variables === null
@@ -22128,13 +22671,16 @@ const AngularWorkflow = (defaultprops) => {
selectedApp.authentication.parameters === undefined ||
selectedApp.authentication.parameters.length === 0
) {
- return (
+ return null
+ /*
+ (
);
+ */
}
authenticationOption.app.actions = [];
@@ -22591,7 +23137,11 @@ const AngularWorkflow = (defaultprops) => {
{
{codeEditorModalOpen ?
{
handleSubflowParamChange={handleSubflowParamChange}
codedata={editorData.value}
setcodedata={setcodedata}
+ selectedEdge={selectedEdge}
handleActionParamChange={handleActionParamChange}
+ handleConditionFieldChange={handleConditionFieldChange}
// Not working out of the box
parameterName={editorData.name}
@@ -23664,6 +24217,7 @@ const AngularWorkflow = (defaultprops) => {
activeDialog={activeDialog}
setActiveDialog={setActiveDialog}
environment={selectedActionEnvironment}
+ userdata={userdata}
setAiQueryModalOpen={setAiQueryModalOpen}
diff --git a/frontend/src/views/Apps2.jsx b/frontend/src/views/Apps2.jsx
index 2c558f37..d56e3469 100644
--- a/frontend/src/views/Apps2.jsx
+++ b/frontend/src/views/Apps2.jsx
@@ -59,7 +59,6 @@ const AppCard = ({ data, index, mouseHoverIndex, setMouseHoverIndex, globalUrl,
(userdata?.admin === "true" && userdata?.active_org?.id === data?.reference_org) ||
data?.contributors?.includes(userdata?.id)
- console.log("appdata", data)
const paperStyle = {
backgroundColor: mouseHoverIndex === index ? "rgba(26, 26, 26, 1)" : "#212121",
color: "rgba(241, 241, 241, 1)",
diff --git a/frontend/src/views/Docs.jsx b/frontend/src/views/Docs.jsx
index 7e148d8d..7d55acaf 100755
--- a/frontend/src/views/Docs.jsx
+++ b/frontend/src/views/Docs.jsx
@@ -184,15 +184,15 @@ export const CodeHandler = (props) => {
if (validate.valid === false) {
// Check if https://shuffler.io in the url
// if so, then we change it for the current url
- if (propvalue.includes("https://shuffler.io")) {
- newprop = propvalue.replace("https://shuffler.io", window.location.origin)
- }
+ if (propvalue.includes("https://shuffler.io/api")) {
+ newprop = propvalue.replace("https://shuffler.io/api", window.location.origin+"/api")
- // Check if it contains Bearer APIKEY
- // If so, replace apikey
- //if (newprop.includes("Bearer APIKEY")) {
- // newprop = newprop.replace("Bearer APIKEY", "Bearer API
- //}
+
+ const foundurl = localStorage.getItem("globalUrl")
+ if (foundurl !== undefined && foundurl !== null && foundurl !== "") {
+ newprop = propvalue.replace("https://shuffler.io/api", foundurl+"/api")
+ }
+ }
}
// Need to check if it's singletick or multi
diff --git a/frontend/src/views/Workflows2.jsx b/frontend/src/views/Workflows2.jsx
index 0c587f00..40aaf42d 100644
--- a/frontend/src/views/Workflows2.jsx
+++ b/frontend/src/views/Workflows2.jsx
@@ -1187,32 +1187,32 @@ const Workflows2 = (props) => {
"",
data.status,
)
- .then((response) => {
- if (response !== undefined) {
- // SET THE FULL THING
- data.id = response.id;
+ .then((response) => {
+ if (response !== undefined) {
+ // SET THE FULL THING
+ data.id = response.id;
- // Actually create it
- setNewWorkflow(
- data.name,
- data.description,
- data.tags,
- data.default_return_value,
- data,
- false,
- [],
- "",
- data.status
- ).then((response) => {
- if (response !== undefined) {
- toast(`Successfully imported ${data.name}`);
- }
- });
- }
- })
- .catch((error) => {
- toast("Import error: " + error.toString());
- });
+ // Actually create it
+ setNewWorkflow(
+ data.name,
+ data.description,
+ data.tags,
+ data.default_return_value,
+ data,
+ false,
+ [],
+ "",
+ data.status
+ ).then((response) => {
+ if (response !== undefined) {
+ toast(`Successfully imported ${data.name}`);
+ }
+ });
+ }
+ })
+ .catch((error) => {
+ toast("Import error: " + error.toString());
+ });
});
} catch (e) {
console.log("Error in dropzone: ", e);
@@ -2875,6 +2875,7 @@ const Workflows2 = (props) => {
if (editingWorkflow.id !== undefined) {
console.log("Building original workflow");
method = "PUT";
+ //extraData = "/" + editingWorkflow.id + "?skip_save=true";
extraData = "/" + editingWorkflow.id + "?skip_save=true";
workflowdata = editingWorkflow;