making pipelines to show up in the ui
This commit is contained in:
@@ -805,7 +805,7 @@ If you're interested, please let me know a time that works for you, or set up a
|
|||||||
.then((responseJson) => {
|
.then((responseJson) => {
|
||||||
setWebHooks(responseJson.webhooks || []); // Handling the case where the result is null or undefined
|
setWebHooks(responseJson.webhooks || []); // Handling the case where the result is null or undefined
|
||||||
setAllSchedules(responseJson.schedules || []);
|
setAllSchedules(responseJson.schedules || []);
|
||||||
// setPipelines(responseJson.pipelines || []);
|
setPipelines(responseJson.pipelines || []);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
// toast(error.toString());
|
// toast(error.toString());
|
||||||
@@ -990,11 +990,13 @@ If you're interested, please let me know a time that works for you, or set up a
|
|||||||
}
|
}
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
|
command: pipeline.command,
|
||||||
name: pipeline.name,
|
name: pipeline.name,
|
||||||
type: state,
|
type: state,
|
||||||
environment: pipeline.environment,
|
environment: pipeline.environment,
|
||||||
workflow_id: pipeline.workflow_id,
|
workflow_id: pipeline.workflow_id,
|
||||||
trigger_id: pipeline.trigger_id,
|
trigger_id: pipeline.trigger_id,
|
||||||
|
start_node: pipeline.start_node,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (state === "start") toast("starting the pipeline");
|
if (state === "start") toast("starting the pipeline");
|
||||||
@@ -1025,6 +1027,7 @@ If you're interested, please let me know a time that works for you, or set up a
|
|||||||
if (state === "start") toast("Successfully created pipeline");
|
if (state === "start") toast("Successfully created pipeline");
|
||||||
else toast("Sucessfully stopped the pipeline");
|
else toast("Sucessfully stopped the pipeline");
|
||||||
}
|
}
|
||||||
|
setTimeout(handleGetAllTriggers, 1000);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
//toast(error.toString());
|
//toast(error.toString());
|
||||||
@@ -4938,7 +4941,7 @@ If you're interested, please let me know a time that works for you, or set up a
|
|||||||
|
|
||||||
<ListItemText>
|
<ListItemText>
|
||||||
<Button
|
<Button
|
||||||
style={{ marginLeft: "18%" }}
|
style={{ marginLeft: "140px" }}
|
||||||
variant={
|
variant={
|
||||||
webhook.status === "running" ? "contained" : "outlined"
|
webhook.status === "running" ? "contained" : "outlined"
|
||||||
}
|
}
|
||||||
@@ -4960,10 +4963,10 @@ If you're interested, please let me know a time that works for you, or set up a
|
|||||||
</List>
|
</List>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* <div style={{ marginTop: 20, marginBottom: 20 }}>
|
<div style={{ marginTop: 20, marginBottom: 20 }}>
|
||||||
<h2 style={{ display: "inline" }}>Tenzir Pipelines</h2>
|
<h2 style={{ display: "inline" }}>Tenzir Pipelines</h2>
|
||||||
<span style={{ marginLeft: 25 }}>
|
<span style={{ marginLeft: 25 }}>
|
||||||
Controls a pipeline to run things.{" "}
|
Controls the Tenzir pipeline operations.{" "}
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
@@ -5010,7 +5013,7 @@ If you're interested, please let me know a time that works for you, or set up a
|
|||||||
primary="Workflow"
|
primary="Workflow"
|
||||||
style={{ maxWidth: 315, minWidth: 315 }}
|
style={{ maxWidth: 315, minWidth: 315 }}
|
||||||
/>
|
/>
|
||||||
<ListItemText primary="Actions" />
|
<ListItemText primary="Actions" style={{ marginLeft: '120px' }} />
|
||||||
</ListItem>
|
</ListItem>
|
||||||
{pipelines.map((pipeline, index) => {
|
{pipelines.map((pipeline, index) => {
|
||||||
var bgColor = "#27292d";
|
var bgColor = "#27292d";
|
||||||
@@ -5063,7 +5066,7 @@ If you're interested, please let me know a time that works for you, or set up a
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</List>
|
</List>
|
||||||
)}*/}
|
)}
|
||||||
</div>
|
</div>
|
||||||
) : null;
|
) : null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user