Fixed authentication assignment button
This commit is contained in:
@@ -2430,11 +2430,11 @@ func saveWorkflow(resp http.ResponseWriter, request *http.Request) {
|
||||
}
|
||||
|
||||
if len(workflow.ExecutionVariables) > 0 {
|
||||
log.Printf("Found %d execution variable(s)", len(workflow.ExecutionVariables))
|
||||
log.Printf("[INFO] Found %d execution variable(s)", len(workflow.ExecutionVariables))
|
||||
}
|
||||
|
||||
if len(workflow.WorkflowVariables) > 0 {
|
||||
log.Printf("Found %d workflow variable(s)", len(workflow.WorkflowVariables))
|
||||
log.Printf("[INFO] Found %d workflow variable(s)", len(workflow.WorkflowVariables))
|
||||
}
|
||||
|
||||
// FIXME - do actual checks ROFL
|
||||
@@ -4785,7 +4785,8 @@ func setAuthenticationConfig(resp http.ResponseWriter, request *http.Request) {
|
||||
|
||||
for _, action := range workflow.Actions {
|
||||
if action.AppName == auth.App.Name {
|
||||
//log.Printf("FOUND ACTION TO UPDATE: %#v", action)
|
||||
action.AuthenticationId = auth.Id
|
||||
|
||||
edited = true
|
||||
actionCnt += 1
|
||||
usage.Nodes = append(usage.Nodes, action.ID)
|
||||
@@ -4809,11 +4810,12 @@ func setAuthenticationConfig(resp http.ResponseWriter, request *http.Request) {
|
||||
}
|
||||
|
||||
//Usage []AuthenticationUsage `json:"usage" datastore:"usage"`
|
||||
log.Printf("Found %d workflows, %d actions", workflowCnt, actionCnt)
|
||||
log.Printf("[INFO] Found %d workflows, %d actions", workflowCnt, actionCnt)
|
||||
if actionCnt > 0 && workflowCnt > 0 {
|
||||
auth.WorkflowCount = int64(workflowCnt)
|
||||
auth.NodeCount = int64(actionCnt)
|
||||
auth.Usage = authenticationUsage
|
||||
auth.Defined = true
|
||||
|
||||
err = setWorkflowAppAuthDatastore(ctx, *auth, auth.Id)
|
||||
if err != nil {
|
||||
|
||||
@@ -2042,16 +2042,20 @@ const Admin = (props) => {
|
||||
<ListItem>
|
||||
<ListItemText
|
||||
primary="Icon"
|
||||
style={{minWidth: 150, maxWidth: 150}}
|
||||
style={{minWidth: 75, maxWidth: 75}}
|
||||
/>
|
||||
<ListItemText
|
||||
primary="Label"
|
||||
style={{minWidth: 275, maxWidth: 275}}
|
||||
style={{minWidth: 225, maxWidth: 225}}
|
||||
/>
|
||||
<ListItemText
|
||||
primary="App Name"
|
||||
style={{minWidth: 150, maxWidth: 150}}
|
||||
/>
|
||||
<ListItemText
|
||||
primary="Ready"
|
||||
style={{minWidth: 100, maxWidth: 100}}
|
||||
/>
|
||||
<ListItemText
|
||||
primary="Workflows"
|
||||
style={{minWidth: 110, maxWidth: 110, overflow: "hidden"}}
|
||||
@@ -2078,16 +2082,20 @@ const Admin = (props) => {
|
||||
<ListItem key={index} style={{backgroundColor: bgColor}}>
|
||||
<ListItemText
|
||||
primary=<img alt="" src={data.app.large_image} style={{maxWidth: 50,}} />
|
||||
style={{minWidth: 150, maxWidth: 150}}
|
||||
style={{minWidth: 75, maxWidth: 75}}
|
||||
/>
|
||||
<ListItemText
|
||||
primary={data.label}
|
||||
style={{minWidth: 275, maxWidth: 275}}
|
||||
style={{minWidth: 225, maxWidth: 225}}
|
||||
/>
|
||||
<ListItemText
|
||||
primary={data.app.name}
|
||||
style={{minWidth: 150, maxWidth: 150}}
|
||||
/>
|
||||
<ListItemText
|
||||
primary={data.defined === false ? "No" : "Yes"}
|
||||
style={{minWidth: 100, maxWidth: 100}}
|
||||
/>
|
||||
<ListItemText
|
||||
primary={data.workflow_count === null ? 0 : data.workflow_count}
|
||||
style={{minWidth: 110, maxWidth: 110, overflow: "hidden"}}
|
||||
|
||||
Reference in New Issue
Block a user