diff --git a/frontend/src/views/Admin.jsx b/frontend/src/views/Admin.jsx
index eb4173ef..81feaaab 100755
--- a/frontend/src/views/Admin.jsx
+++ b/frontend/src/views/Admin.jsx
@@ -203,7 +203,7 @@ const Admin = (props) => {
const [selectedStatus, setSelectedStatus] = React.useState([]);
const [webHooks, setWebHooks] = React.useState([]);
const [allSchedules, setAllSchedules] = React.useState([]);
-
+ const [pipelines, setPipelines] = React.useState([]);
const [, forceUpdate] = React.useState();
const [showDeleteAccountTextbox, setShowDeleteAccountTextbox] =
@@ -756,6 +756,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 || []);
})
.catch((error) => {
toast(error.toString());
@@ -933,6 +934,14 @@ If you're interested, please let me know a time that works for you, or set up a
});
};
+ const changePipelineState = (pipeline, state) => {
+ if (state.trim() === ''){
+ toast("state is not defined")
+ return
+ }
+
+ }
+
if (
userdata.support === true &&
selectedOrganization.id !== "" &&
@@ -4573,94 +4582,112 @@ If you're interested, please let me know a time that works for you, or set up a
backgroundColor: theme.palette.inputColor,
}}
/>
-
-
-
-
-
-
-
-
-
- {allSchedules === undefined || allSchedules === null
- ? null
- : allSchedules.map((schedule, index) => {
- var bgColor = "#27292d";
- if (index % 2 === 0) {
- bgColor = "#1f2023";
- }
+ {allSchedules === undefined ||
+ allSchedules === null ||
+ allSchedules.length === 0 ? (
+
@@ -4673,126 +4700,140 @@ If you're interested, please let me know a time that works for you, or set up a
backgroundColor: theme.palette.inputColor,
}}
/>
+ {webHooks === undefined || webHooks === null || webHooks.length === 0 ? (
+
Controls a pipeline to run things.{" "}
@@ -4813,9 +4854,90 @@ If you're interested, please let me know a time that works for you, or set up a
marginBottom: 20,
backgroundColor: theme.palette.inputColor,
}}
- /> */}
+ />
+ {pipelines === undefined || pipelines === null || pipelines.length === 0 ? (
+