diff --git a/backend/go-app/go.mod b/backend/go-app/go.mod index f7fe10af..99b85fd6 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.40.0 - github.com/frikky/shuffle-shared v0.0.84 + github.com/frikky/shuffle-shared v0.0.87 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/frontend/src/components/AlertTemplate.js b/frontend/src/components/AlertTemplate.js index 58ff46cc..66f4b1c7 100644 --- a/frontend/src/components/AlertTemplate.js +++ b/frontend/src/components/AlertTemplate.js @@ -15,7 +15,7 @@ const alertStyle = { justifyContent: 'space-between', alignItems: 'center', boxShadow: '0px 2px 2px 2px rgba(0, 0, 0, 0.03)', - width: 400, + width: 300, boxSizing: 'border-box', zIndex: 100001, overflow: "hidden", diff --git a/frontend/src/components/Oauth2Auth.jsx b/frontend/src/components/Oauth2Auth.jsx index b2b06d75..64a82d5b 100644 --- a/frontend/src/components/Oauth2Auth.jsx +++ b/frontend/src/components/Oauth2Auth.jsx @@ -57,27 +57,32 @@ const AuthenticationOauth2 = (props) => { try { var newwin = window.open(url, "", "width=400,height=200") - console.log(newwin) - setTimeout(() => { - console.log(newwin) - console.log("CLOSED", newwin.closed) - }, 1000) + //console.log(newwin) + + var open = true + const timer = setInterval(() => { + if (newwin.closed) { + clearInterval(timer); + //alert('"Secure Payment" window closed!'); - setTimeout(() => { - console.log(newwin) - console.log("CLOSED", newwin.closed) - if (newwin.closed) { getAppAuthentication(true, true) setTimeout(() => { console.log("APPAUTH: ", appAuthentication) - - //{selectedAction.authentication.map(data => { - setAuthenticationModalOpen(false) - saveWorkflow(workflow) }, 1500) - } - }, 10000) + } + }, 1000); + //do { + // setTimeout(() => { + // console.log(newwin) + // console.log("CLOSED", newwin.closed) + // if (newwin.closed) { + + // open = false + // } + // }, 1000) + //} + //while(open === true) } catch (e) { alert.error("Failed authentication - probably bad credentials. Try again") setButtonClicked(false) diff --git a/frontend/src/components/ParsedAction.jsx b/frontend/src/components/ParsedAction.jsx index 3d0013ea..45f7a8eb 100644 --- a/frontend/src/components/ParsedAction.jsx +++ b/frontend/src/components/ParsedAction.jsx @@ -1397,7 +1397,7 @@ const ParsedAction = (props) => {