+
{
color="primary"
style={{
height: 35,
- flex: 1,
+ flex: 1,
marginLeft: 10,
marginTop: 5,
}}
@@ -1902,11 +1902,11 @@ const CodeEditor = (props) => {
// console.log(codedata)
// console.log(fieldCount)
- if (isFileEditor === true){
+ if (isFileEditor === true) {
runUpdateText(fixedcodedata);
setcodedata(fixedcodedata);
setExpansionModalOpen(false)
- } else if (changeActionParameterCodeMirror !== undefined) {
+ } else if (changeActionParameterCodeMirror !== undefined) {
//changeActionParameterCodeMirror(event, fieldCount, fixedcodedata)
changeActionParameterCodeMirror(event, fieldCount, fixedcodedata, actionlist)
setExpansionModalOpen(false)
@@ -1924,7 +1924,7 @@ const CodeEditor = (props) => {
setExpansionModalOpen(false)
}}
>
- Submit
+ Submit
)
diff --git a/frontend/src/context/ContextApi.jsx b/frontend/src/context/ContextApi.jsx
index c9b02e34..3932dfd0 100644
--- a/frontend/src/context/ContextApi.jsx
+++ b/frontend/src/context/ContextApi.jsx
@@ -3,11 +3,18 @@ export const Context = createContext();
export const AppContext =(props) => {
+ const currentLocation = window?.location?.pathname;
+
// Left side bar global states
const [searchBarModalOpen, setSearchBarModalOpen] = useState(false);
- const [leftSideBarOpenByClick, setLeftSideBarOpenByClick] = useState(false);
+ const [leftSideBarOpenByClick, setLeftSideBarOpenByClick] = useState(currentLocation?.includes('/workflows/') ? false : true)
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
+ useEffect(() => {
+ if (currentLocation?.includes('/workflows/') && leftSideBarOpenByClick === true) {
+ setLeftSideBarOpenByClick(false)
+ }
+ }, [leftSideBarOpenByClick])
//Calculate window width
useEffect(() => {
diff --git a/frontend/src/views/Admin2.jsx b/frontend/src/views/Admin2.jsx
index f22da85b..2e68cef6 100644
--- a/frontend/src/views/Admin2.jsx
+++ b/frontend/src/views/Admin2.jsx
@@ -12,18 +12,18 @@ const Admin2 = (props) => {
const [orgRequest, setOrgRequest] = React.useState(true);
const isCloud = window.location.host === "localhost:3002" || window.location.host === "shuffler.io";
const handleGetOrg = (orgId) => {
- if (
- serverside !== true &&
- window.location.search !== undefined &&
- window.location.search !== null
- ) {
- const urlSearchParams = new URLSearchParams(window.location.search);
- const params = Object.fromEntries(urlSearchParams.entries());
- const foundorgid = params["org_id"];
- if (foundorgid !== undefined && foundorgid !== null) {
- orgId = foundorgid;
- }
- }
+ // if (
+ // serverside !== true &&
+ // window.location.search !== undefined &&
+ // window.location.search !== null
+ // ) {
+ // const urlSearchParams = new URLSearchParams(window.location.search);
+ // const params = Object.fromEntries(urlSearchParams.entries());
+ // const foundorgid = params["org_id"];
+ // if (foundorgid !== undefined && foundorgid !== null) {
+ // orgId = foundorgid;
+ // }
+ // }
console.log("getting organization details for: ", orgId);
// if (orgId === undefined) {
@@ -154,16 +154,15 @@ const Admin2 = (props) => {
});
};
- const urlSearchParams = new URLSearchParams(window.location.search);
- const params = Object.fromEntries(urlSearchParams.entries());
- const foundOrgID = params["org_id"]
useEffect(() => {
-
+ const urlSearchParams = new URLSearchParams(window.location.search);
+ const params = Object.fromEntries(urlSearchParams.entries());
+ const foundOrgID = params["org_id"]
if(foundOrgID !== null && foundOrgID !== undefined && userdata?.support && foundOrgID?.length > 0) {
handleClickChangeOrg(foundOrgID)
}
- }, [foundOrgID]);
+ }, [userdata]);
const handleClickChangeOrg = (orgId) => {
// Don't really care about the logout
diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx
index 7550369c..ae87ef6a 100755
--- a/frontend/src/views/AngularWorkflow.jsx
+++ b/frontend/src/views/AngularWorkflow.jsx
@@ -399,7 +399,7 @@ const AngularWorkflow = (defaultprops) => {
props.match = {}
props.match.params = params
- const { leftSideBarOpenByClick, windowWidth } = useContext(Context)
+ const { setLeftSideBarOpenByClick, leftSideBarOpenByClick, windowWidth } = useContext(Context)
const [workflowAsCode, setWorkflowAsCode] = useState(false);
var to_be_copied = "";
@@ -8662,6 +8662,9 @@ const releaseToConnectLabel = "Release to Connect"
getApps()
fetchUsecases()
+ setLeftSideBarOpenByClick(false)
+ localStorage.setItem("expandLeftNav", false)
+
const cursearch = typeof window === "undefined" || window.location === undefined ? "" : window.location.search;
// FIXME: Don't check specific one here
@@ -10568,6 +10571,9 @@ const releaseToConnectLabel = "Release to Connect"
const CustomAppHits = connectHits(AppHits)
var shuffleToolsApp = apps.find((app) => app.name === "Shuffle Tools")
+ if (shuffleToolsApp !== undefined && shuffleToolsApp !== null) {
+ shuffleToolsApp = JSON.parse(JSON.stringify(shuffleToolsApp))
+ }
var viewedApps = []
return (
@@ -10620,24 +10626,24 @@ const releaseToConnectLabel = "Release to Connect"
: null}
@@ -16242,7 +16248,7 @@ const releaseToConnectLabel = "Release to Connect"
{!distributedFromParent ?
isCorrectOrg ? null :
-