diff --git a/backend/go-app/go.mod b/backend/go-app/go.mod index 60670e20..36c29f1f 100644 --- a/backend/go-app/go.mod +++ b/backend/go-app/go.mod @@ -2,7 +2,7 @@ module shuffle go 1.13 -replace github.com/frikky/shuffle-shared => ../../../../git/shuffle-shared +//replace github.com/frikky/shuffle-shared => ../../../../git/shuffle-shared //replace github.com/frikky/kin-openapi => ../../../../git/kin-openapi @@ -22,7 +22,7 @@ require ( github.com/docker/go-units v0.4.0 // indirect github.com/elastic/go-elasticsearch/v7 v7.13.1 // indirect github.com/frikky/kin-openapi v0.39.0 - github.com/frikky/shuffle-shared v0.0.76 + github.com/frikky/shuffle-shared v0.0.78 github.com/fsouza/go-dockerclient v1.7.2 github.com/ghodss/yaml v1.0.0 github.com/go-git/go-billy/v5 v5.0.0 diff --git a/backend/go-app/main.go b/backend/go-app/main.go index 9c0d1f68..0e6db708 100644 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -993,8 +993,6 @@ func handleInfo(resp http.ResponseWriter, request *http.Request) { Role: userInfo.ActiveOrg.Role, Image: org.Image, } - - userInfo.ActiveOrg.Users = []shuffle.UserMini{} } userInfo.ActiveOrg.Users = []shuffle.UserMini{} @@ -4078,7 +4076,7 @@ func runInitEs(ctx context.Context) { for _, org := range activeOrgs { if !org.CloudSync { - log.Printf("[WARNING] Skipping org %s because sync isn't set (1).", org.Id) + log.Printf("[WARNING] Skipping org syncCheck for %s because sync isn't set (1).", org.Id) continue } diff --git a/docker-compose.yml b/docker-compose.yml index 471d1e38..69ca24b7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ services: depends_on: - backend backend: - build: ./backend + #build: ./backend image: ghcr.io/frikky/shuffle-backend:nightly container_name: shuffle-backend hostname: ${BACKEND_HOSTNAME} diff --git a/frontend/src/components/Header.js b/frontend/src/components/Header.js index e57c4068..994f16f3 100644 --- a/frontend/src/components/Header.js +++ b/frontend/src/components/Header.js @@ -84,10 +84,10 @@ const Header = props => { return response.json(); }).then(function(responseJson) { if (responseJson.success !== undefined && responseJson.success) { - alert.success("Successfully changed active organization - refreshing!") setTimeout(() => { window.location.reload() }, 2000) + alert.success("Successfully changed active organization - refreshing!") } else { alert.error("Failed changing org: ", responseJson.reason) } diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index 41cfaae0..5bfcbd24 100644 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -3483,7 +3483,7 @@ const AngularWorkflow = (props) => { } const stopSchedule = (trigger, triggerindex) => { - alert.info("Stopping schedule") + //alert.info("Stopping schedule") fetch(globalUrl+"/api/v1/workflows/"+props.match.params.key+"/schedule/"+trigger.id, { method: 'DELETE', headers: { diff --git a/frontend/src/views/Workflows.jsx b/frontend/src/views/Workflows.jsx index c8898acf..ce409a2f 100644 --- a/frontend/src/views/Workflows.jsx +++ b/frontend/src/views/Workflows.jsx @@ -1067,26 +1067,36 @@ const Workflows = (props) => { } var parsedName = data.name - if (parsedName !== undefined && parsedName !== null && parsedName.length > 25) { - parsedName = parsedName.slice(0,26)+".." + if (parsedName !== undefined && parsedName !== null && parsedName.length > 22) { + parsedName = parsedName.slice(0,23)+".." } const actions = data.actions !== null ? data.actions.length : 0 const [triggers, schedules, webhooks, subflows] = getWorkflowMeta(data) const imagesize = 22 - const foundOrg = userdata.orgs.find(org => org.id === data["org_id"]) - //position: "absolute", bottom: 5, right: -5, - const imageStyle = {width: imagesize, height: imagesize, pointerEvents: "none", marginRight: 10, marginLeft: data.creator_org !== undefined && data.creator_org.length > 0 ? 20 : 0, borderRadius: 10, border: foundOrg.id === userdata.active_org.id ? `4px solid ${boxColor}` : null, cursor: "pointer", marginRight: 10, } + var image = "" + var orgName = "" + var orgId = "" + if (userdata.orgs !== undefined) { + const foundOrg = userdata.orgs.find(org => org.id === data["org_id"]) + if (foundOrg !== undefined && foundOrg !== null) { + //position: "absolute", bottom: 5, right: -5, + const imageStyle = {width: imagesize, height: imagesize, pointerEvents: "none", marginRight: 10, marginLeft: data.creator_org !== undefined && data.creator_org.length > 0 ? 20 : 0, borderRadius: 10, border: foundOrg.id === userdata.active_org.id ? `3px solid ${boxColor}` : null, cursor: "pointer", marginRight: 10, } - // - const image = foundOrg.image === "" ? - {foundOrg.name} - : - {foundOrg.name} { - //setFilteredWorkflows(newWorkflows) - }}/> + // + image = foundOrg.image === "" ? + {foundOrg.name} + : + {foundOrg.name} { + //setFilteredWorkflows(newWorkflows) + }}/> + + orgName = foundOrg.name + orgId = foundOrg.id + } + } return ( @@ -1094,10 +1104,10 @@ const Workflows = (props) => {
- +
{ - addFilter(foundOrg.id) - //setFilters(["Org "+foundOrg.name]) + addFilter(orgId) + //setFilters(["Org "+orgName]) //setFilteredWorkflows(newWorkflows) }}> {image}