Fixed webhook

This commit is contained in:
frikky
2020-05-14 10:43:05 +02:00
parent 809a1824ff
commit 33f6d85e09
3 changed files with 31 additions and 12 deletions
+18 -4
View File
@@ -575,9 +575,26 @@ const Workflows = (props) => {
var starttime = new Date(selectedExecution.started_at*1000)
var endtime = new Date(selectedExecution.started_at*1000)
var parsedArgument = selectedExecution.execution_argument
if (selectedExecution.execution_argument !== undefined && selectedExecution.execution_argument.length > 0) {
parsedArgument = replaceAll(parsedArgument, " None", " \"None\"");
}
const arg = selectedExecution.execution_argument !== undefined && selectedExecution.execution_argument.length > 0 ?
<div>
Argument: {selectedExecution.execution_argument}
Execution argument: {(parsedArgument.startsWith("{") && parsedArgument.endsWith("}")) || (parsedArgument.startsWith("[{") && parsedArgument.endsWith("}]")) ?
<div>
<ReactJson
src={JSON.parse(parsedArgument)}
theme="solarized"
collapsed={true}
displayDataTypes={false}
name={"Execution argument"}
/>
</div>
:
selectedExecution.execution_argument
}
</div>
: null
/*
@@ -603,9 +620,6 @@ const Workflows = (props) => {
<div>
Finished: {endtime.toISOString()}
</div>
<div>
Result: {selectedExecution.result}
</div>
<div>
Last node: {selectedExecution.last_node}
</div>