Cloud sync
This commit is contained in:
@@ -578,7 +578,7 @@ const LeftSideBar = ({ userdata, serverside, globalUrl, notifications, }) => {
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{userdata && (userdata?.org_status?.includes("integration_partner") && userdata?.org_status?.includes("sub_org")) ? null : (
|
{userdata && (userdata?.org_status?.includes("integration_partner") && userdata?.active_org?.role !== "admin") ? null : (
|
||||||
<>
|
<>
|
||||||
<ToggleButtonGroup
|
<ToggleButtonGroup
|
||||||
value={currentSelectedTheme}
|
value={currentSelectedTheme}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import { makeStyles } from '@mui/material/styles';
|
|||||||
import { useInterval } from "react-powerhooks";
|
import { useInterval } from "react-powerhooks";
|
||||||
import { isMobile } from "react-device-detect";
|
import { isMobile } from "react-device-detect";
|
||||||
import Markdown from "react-markdown";
|
import Markdown from "react-markdown";
|
||||||
import theme from '../theme.jsx';
|
import {getTheme} from '../theme.jsx';
|
||||||
import rehypeRaw from "rehype-raw";
|
import rehypeRaw from "rehype-raw";
|
||||||
import RecentWorkflow from "../components/RecentWorkflow.jsx";
|
import RecentWorkflow from "../components/RecentWorkflow.jsx";
|
||||||
|
|
||||||
@@ -58,6 +58,8 @@ const hrefStyle = {
|
|||||||
|
|
||||||
const RunWorkflow = (defaultprops) => {
|
const RunWorkflow = (defaultprops) => {
|
||||||
const { globalUrl, userdata, isLoaded, isLoggedIn, setIsLoggedIn, setCookie, register, serverside } = defaultprops;
|
const { globalUrl, userdata, isLoaded, isLoggedIn, setIsLoggedIn, setCookie, register, serverside } = defaultprops;
|
||||||
|
const { themeMode, brandColor } = useContext(Context);
|
||||||
|
const theme = getTheme(themeMode, brandColor);
|
||||||
|
|
||||||
const { supportEmail } = useContext(Context);
|
const { supportEmail } = useContext(Context);
|
||||||
let navigate = useNavigate();
|
let navigate = useNavigate();
|
||||||
|
|||||||
@@ -2695,7 +2695,7 @@ const Workflows2 = (props) => {
|
|||||||
style={{
|
style={{
|
||||||
height: 24,
|
height: 24,
|
||||||
width: 24,
|
width: 24,
|
||||||
filter: themeMode === "dark" ? "brightness(0.6)" : "brightness(0.9)",
|
filter: themeMode === "dark" ? "brightness(0.6)" : "brightness(1)",
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -2716,7 +2716,7 @@ const Workflows2 = (props) => {
|
|||||||
style={{
|
style={{
|
||||||
height: 24,
|
height: 24,
|
||||||
width: 24,
|
width: 24,
|
||||||
filter: "brightness(0.6)",
|
filter: themeMode === "dark" ? "brightness(0.6)" : "brightness(1)",
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user