Added Docs update, missing images and Tenzir pipelines
This commit is contained in:
@@ -1261,7 +1261,7 @@ If you're interested, please let me know a time that works for you, or set up a
|
||||
};
|
||||
|
||||
const rerunCloudWorkflows = (environment) => {
|
||||
toast("Starting execution reruns. This can run in the background.")
|
||||
toast("Starting execution reruns. This can run in the background.")
|
||||
fetch(
|
||||
`${globalUrl}/api/v1/environments/${environment.id}/rerun`,
|
||||
{
|
||||
@@ -1292,6 +1292,7 @@ If you're interested, please let me know a time that works for you, or set up a
|
||||
|
||||
const abortEnvironmentWorkflows = (environment) => {
|
||||
//console.log("Aborting all workflows started >10 minutes ago, not finished");
|
||||
toast("Clearing the queue - this may take some time. A new will show up when finished.")
|
||||
|
||||
fetch(
|
||||
`${globalUrl}/api/v1/environments/${environment.id}/stop?deleteall=true`,
|
||||
@@ -1306,7 +1307,9 @@ If you're interested, please let me know a time that works for you, or set up a
|
||||
toast("Failed aborting dangling workflows");
|
||||
return;
|
||||
} else {
|
||||
toast("Aborted all dangling workflows");
|
||||
toast("Successfully cleared the queue")
|
||||
|
||||
getEnvironments()
|
||||
}
|
||||
|
||||
return response.json();
|
||||
@@ -4597,7 +4600,6 @@ If you're interested, please let me know a time that works for you, or set up a
|
||||
<Button
|
||||
variant={"outlined"}
|
||||
style={{ }}
|
||||
disabled={isCloud && environment.Name.toLowerCase() !== "cloud"}
|
||||
onClick={() => {
|
||||
console.log("Should clear executions for: ", environment);
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -118,8 +118,6 @@ export const Img = (props) => {
|
||||
export const CodeHandler = (props) => {
|
||||
const propvalue = props.value !== undefined && props.value !== null ? props.value : props.children !== undefined && props.children !== null && props.children.length > 0 ? props.children[0] : ""
|
||||
|
||||
|
||||
|
||||
const validate = validateJson(propvalue)
|
||||
|
||||
var newprop = propvalue
|
||||
@@ -137,6 +135,17 @@ export const CodeHandler = (props) => {
|
||||
//}
|
||||
}
|
||||
|
||||
// Need to check if it's singletick or multi
|
||||
console.log("PROP: ", propvalue, props)
|
||||
if (props.inline === true) {
|
||||
// Show it inline
|
||||
return (
|
||||
<span style={{backgroundColor: theme.palette.inputColor, display: "inline", whiteSpace: "pre-wrap", padding: "6px 3px 6px 3px", }}>
|
||||
{newprop}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
@@ -145,6 +154,8 @@ export const CodeHandler = (props) => {
|
||||
maxWidth: "100%",
|
||||
backgroundColor: theme.palette.inputColor,
|
||||
overflowY: "auto",
|
||||
// Have it inline
|
||||
borderRadius: theme.palette.borderRadius,
|
||||
}}
|
||||
>
|
||||
{validate.valid === true ?
|
||||
|
||||
Reference in New Issue
Block a user