Moved executions to workflow view

This commit is contained in:
frikky
2021-01-22 13:27:28 +01:00
parent 4f1e618042
commit 09002f4aa3
3 changed files with 10 additions and 3 deletions
-1
View File
@@ -4940,7 +4940,6 @@ func addAppAuthentication(resp http.ResponseWriter, request *http.Request) {
if foundIndex >= 0 {
log.Printf("[INFO] Found app %s by looping auth", appAuth.App.ID)
app = &workflowapps[foundIndex]
} else {
log.Printf("[ERROR] Failed finding app %s which has auth after looping", appAuth.App.ID)
resp.WriteHeader(409)
+6
View File
@@ -1536,6 +1536,12 @@ const AngularWorkflow = (props) => {
getWorkflowExecution(props.match.params.key)
getAvailableWorkflows(-1)
getSettings()
const cursearch = typeof window === 'undefined' || window.location === undefined ? "" : window.location.search
const tmpView = new URLSearchParams(cursearch).get("view")
if (tmpView !== undefined && tmpView !== null && tmpView === "executions") {
setExecutionModalOpen(true)
}
return
}
+4 -2
View File
@@ -907,7 +907,7 @@ const Workflows = (props) => {
</div>
:
<h4>
There are no executions for this workflow yet
Executions have been moved to the Workflow itself. <Link to={`/workflows/${selectedWorkflow.id}?view=executions`} style={{textDecoration: "none", color: "#f85a3e"}}>Click here to see them</Link>
</h4>
)
}
@@ -1247,7 +1247,8 @@ const Workflows = (props) => {
<ExecutionsView />
</div>
</div>
<div style={{flex: viewSize.executionResults, marginLeft: "10px", marginRight: "10px", minWidth: "33%"}}>
{/*
<div style={{flex: viewSize.executionResults, marginLeft: "10px", marginRight: "10px", minWidth: "40%"}}>
<div style={{display: "flex"}}>
<div style={{flex: "1"}}>
<h2>Execution Timeline</h2>
@@ -1265,6 +1266,7 @@ const Workflows = (props) => {
<ExecutionDetails />
</div>
</div>
*/}
</div>
)
}