{
setAccountDeleteButtonClicked(false);
setSelectedSuborg(null);
}}
>
Sub-Organization
{/*
*/}
If you delete your suborg then:
Your suborg information will be removed from our Database
permanently.
This action cannot be reversed.
I have read the above information and I agree to it completely
Enter password to delete suborg {" " + selectedSuborg?.name}
{showPassword ? : }
),
}}
/>
Delete Suborg
);
};
const modalView = (
{
setModalOpen(false);
}}
PaperProps={{
sx: {
borderRadius: theme?.palette?.DialogStyle?.borderRadius,
border: theme?.palette?.DialogStyle?.border,
minWidth: "800px",
minHeight: "320px",
fontFamily: theme?.typography?.fontFamily,
backgroundColor: theme?.palette?.DialogStyle?.backgroundColor,
zIndex: 1000,
'& .MuiDialogContent-root': {
backgroundColor: theme?.palette?.DialogStyle?.backgroundColor,
},
'& .MuiDialogTitle-root': {
backgroundColor: theme?.palette?.DialogStyle?.backgroundColor,
},
'& .MuiDialogActions-root': {
backgroundColor: theme?.palette?.DialogStyle?.backgroundColor,
},
},
}}
>
Add Sub-Organization
Name
{
setOrgName(event.target.value);
}}
/>
{/* {loginInfo} */}
setModalOpen(false)}
>
Cancel
{
createSubOrg(selectedOrganization.id, orgName);
}}
color="primary"
>
Submit
);
const cloudSyncModal = (
{
setCloudSyncModalOpen(false);
}}
PaperProps={{
sx: {
borderRadius: theme?.palette?.DialogStyle?.borderRadius,
border: theme?.palette?.DialogStyle?.border,
minWidth: "800px",
minHeight: "320px",
fontFamily: theme?.typography?.fontFamily,
backgroundColor: theme?.palette?.DialogStyle?.backgroundColor,
zIndex: 1000,
'& .MuiDialogContent-root': {
backgroundColor: theme?.palette?.DialogStyle?.backgroundColor,
},
'& .MuiDialogTitle-root': {
backgroundColor: theme?.palette?.DialogStyle?.backgroundColor,
},
'& .MuiDialogActions-root': {
backgroundColor: theme?.palette?.DialogStyle?.backgroundColor,
},
},
}}
>
Enable cloud features
What does{" "}
cloud sync
{" "}
do?
{
setCloudSyncApikey(event.target.value);
}}
/>
{
setLoading(true);
enableCloudSync(
cloudSyncApikey,
selectedOrganization,
selectedOrganization.cloud_sync,
);
}}
color="primary"
variant={
selectedOrganization.cloud_sync === true
? "outlined"
: "contained"
}
>
{selectedOrganization.cloud_sync ? "Stop sync" : "Start sync"}
{orgSyncResponse.length > 0 ? (
Error: {orgSyncResponse}
) : null}
{syncList.map((data, index) => {
return ;
})}
* New triggers (userinput, hotmail realtime)
* Execute in the cloud rather than onprem
* Apps can be built in the cloud
* Easily share apps and workflows
* Access to powerful cloud search
);
const textColor = "#9E9E9E !important";
return (
{modalView}
{cloudSyncModal}
{accountDeleteButtonClicked &&
}
Tenants
Create, manage and change to sub-organizations (tenants)! {" "}
{isCloud
? `You can only make a sub organization if you are a customer of shuffle or running a POC of the platform. Please contact ${supportEmail} to try it out.`
: ''}
Learn more
{
setModalOpen(true);
}}
>
Add suborganization
Your Parent Organization
{/*
*/}
{isCloud && (
)}
{loadOrgs ? (
[...Array(3)].map((_, rowIndex) => (
{[
{ width: 100, minWidth: 100, maxWidth: 100 },
{ width: 250, minWidth: 50, maxWidth: 250 },
{ width: 400, minWidth: 400, maxWidth: 400 },
{ width: "28%", minWidth: "28%" },
{ width: 400, minWidth: 400, maxWidth: 400 },
].map((style, colIndex) => (
))}
))
) : parentOrg?.id?.length > 0 ? (
}
style={{
width: 100,
minWidth: 100,
maxWidth: 100,
display: "table-cell",
padding: "8px 8px 8px 20px",
textAlign: "center",
}}
/>
{isCloud && (
}
style={{ display: "table-cell", padding: 8, verticalAlign: "middle" }}
/>
)}
{
handleClickChangeOrg(parentOrg?.id);
}}
>
Switch to Parent
}
style={{ display: "table-cell", verticalAlign: "middle" }}
/>
): (
{Array(5).fill().map((_, index) => (
))}
)}
{subOrgs.length > 0 && (
Sub Organizations of the Current Organization ({subOrgs.length})
{/*
*/}
{!suborglistOpen ?
setSuborglistOpen(true)}
>
Show Sub-Organizations
}
style={{
width: 100,
minWidth: 100,
maxWidth: 100,
paddingLeft: 20,
display: "table-cell",
padding: "0px 8px 8px 8px",
textAlign: "center",
borderBottom: theme.palette.defaultBorder,
verticalAlign: "middle",
}}
/>
:
{isCloud && (
)}
{subOrgs.map((data, index) => {
let regiontag = "UK";
let regionCode = "gb";
if (data.region_url?.length > 0) {
const regionsplit = data.region_url.split(".");
if (regionsplit.length > 2 && !regionsplit[0].includes("shuffler")) {
const namesplit = regionsplit[0].split("/");
regiontag = namesplit[namesplit.length - 1];
if (regiontag === "california") {
regiontag = "US";
regionCode = "us";
} else if (regiontag === "frankfurt") {
regiontag = "EU-2";
regionCode = "eu";
} else if (regiontag === "ca") {
regiontag = "CA";
regionCode = "ca";
}
}
}
var bgColor = themeMode === "dark" ? "#212121" : "#FFFFFF";
if (index % 2 === 0) {
bgColor = themeMode === "dark" ? "#1A1A1A" : "#EAEAEA";
}
return (
} style={{ width: 100,
minWidth: 100,
maxWidth: 100,
display: "table-cell",
padding: "8px 8px 8px 20px",
textAlign: "center", }} />
{isCloud && (
}
style={{ display: "table-cell", padding: 8, verticalAlign: "middle" }}
/>
)}
{
handleClickChangeOrg(data.id);
}}
sx={{
boxShadow:"none", textTransform:"capitalize",
fontSize:16,
'&.Mui-disabled': {
backgroundColor: 'rgba(200, 200, 200, 0.5)',
color: '#A9A9A9',
},
}}
>
Change Active Org
{selectedOrganization?.creator_org?.length > 0 ? null :
{
setAccountDeleteButtonClicked(true);
setSelectedSuborg(data);
}}
>
Delete Org
}
>
}
style={{ display: "table-cell", verticalAlign: "middle" }}
/>
)})}
}
)}
All Tenants
{/*
*/}
{!allTenantsOpen ?
setAllTenantsOpen(true)}
>
Show ALL your tenants
}
style={{
width: 100,
minWidth: 100,
maxWidth: 100,
paddingLeft: 20,
display: "table-cell",
padding: "0px 8px 8px 8px",
textAlign: "center",
borderBottom: theme.palette.defaultBorder,
verticalAlign: "middle",
}}
/>
:
{isCloud && (
)}
{userdata?.orgs?.length <= 0 ? (
[...Array(6)].map((_, rowIndex) => (
{Array(7)
.fill()
.map((_, colIndex) => (
))}
))
) : (
userdata?.orgs?.length > 0 &&
userdata.orgs.map((data, index) => {
let regiontag = "UK";
let regionCode = "gb";
if (data.region_url?.length > 0) {
const regionsplit = data.region_url.split(".");
if (regionsplit.length > 2 && !regionsplit[0].includes("shuffler")) {
const namesplit = regionsplit[0].split("/");
regiontag = namesplit[namesplit.length - 1];
if (regiontag === "california") {
regiontag = "US";
regionCode = "us";
} else if (regiontag === "frankfurt") {
regiontag = "EU-2";
regionCode = "eu";
} else if (regiontag === "ca") {
regiontag = "CA";
regionCode = "ca";
}
}
}
var bgColor = themeMode === "dark" ? "#212121" : "#FFFFFF";
if (index % 2 === 0) {
bgColor = themeMode === "dark" ? "#1A1A1A" : "#EAEAEA";
}
return (
}
style={{
width: 100,
minWidth: 100,
maxWidth: 100,
display: "table-cell",
padding: "8px 8px 8px 20px",
textAlign: "center",
}}
/>
{isCloud ? (
}
style={{
display: "table-cell",
padding: 8,
verticalAlign: "middle",
}}
>
) : null}
{
handleClickChangeOrg(data?.id);
}}
>
Change Active Org
}
style={{
display: "table-cell",
padding: 8,
verticalAlign: "middle",
}}
>
);
})
)}
}
);
});
export default TenantsTab;