Skip to content

Commit

Permalink
making pipelines to show up in the ui
Browse files Browse the repository at this point in the history
  • Loading branch information
satti-hari-krishna-reddy committed May 22, 2024
1 parent 166b251 commit 7d110bc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions frontend/src/views/Admin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ If you're interested, please let me know a time that works for you, or set up a
.then((responseJson) => {
setWebHooks(responseJson.webhooks || []); // Handling the case where the result is null or undefined
setAllSchedules(responseJson.schedules || []);
// setPipelines(responseJson.pipelines || []);
setPipelines(responseJson.pipelines || []);
})
.catch((error) => {
// toast(error.toString());
Expand Down Expand Up @@ -990,11 +990,13 @@ If you're interested, please let me know a time that works for you, or set up a
}

const data = {
command: pipeline.command,
name: pipeline.name,
type: state,
environment: pipeline.environment,
workflow_id: pipeline.workflow_id,
trigger_id: pipeline.trigger_id,
start_node: pipeline.start_node,
};

if (state === "start") toast("starting the pipeline");
Expand Down Expand Up @@ -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");
else toast("Sucessfully stopped the pipeline");
}
setTimeout(handleGetAllTriggers, 1000);
})
.catch((error) => {
//toast(error.toString());
Expand Down Expand Up @@ -4938,7 +4941,7 @@ If you're interested, please let me know a time that works for you, or set up a

<ListItemText>
<Button
style={{ marginLeft: "18%" }}
style={{ marginLeft: "140px" }}
variant={
webhook.status === "running" ? "contained" : "outlined"
}
Expand All @@ -4960,10 +4963,10 @@ If you're interested, please let me know a time that works for you, or set up a
</List>
)}

{/* <div style={{ marginTop: 20, marginBottom: 20 }}>
<div style={{ marginTop: 20, marginBottom: 20 }}>
<h2 style={{ display: "inline" }}>Tenzir Pipelines</h2>
<span style={{ marginLeft: 25 }}>
Controls a pipeline to run things.{" "}
Controls the Tenzir pipeline operations.{" "}
<a
target="_blank"
rel="noopener noreferrer"
Expand Down Expand Up @@ -5010,7 +5013,7 @@ If you're interested, please let me know a time that works for you, or set up a
primary="Workflow"
style={{ maxWidth: 315, minWidth: 315 }}
/>
<ListItemText primary="Actions" />
<ListItemText primary="Actions" style={{ marginLeft: '120px' }} />
</ListItem>
{pipelines.map((pipeline, index) => {
var bgColor = "#27292d";
Expand Down Expand Up @@ -5063,7 +5066,7 @@ If you're interested, please let me know a time that works for you, or set up a
);
})}
</List>
)}*/}
)}
</div>
) : null;

Expand Down

0 comments on commit 7d110bc

Please sign in to comment.