Merge pull request #1903 from LalitDeore/marketplace-test
Add 30 day delay for Production status off
This commit is contained in:
@@ -127,6 +127,8 @@ const LeftSideBar = ({ userdata, serverside, globalUrl, notifications, }) => {
|
||||
setCurrentSelectedTheme(userdata?.theme);
|
||||
}
|
||||
}, [userdata]);
|
||||
|
||||
|
||||
|
||||
const CustomPopper = (props) => {
|
||||
return (
|
||||
@@ -1949,7 +1951,7 @@ const LeftSideBar = ({ userdata, serverside, globalUrl, notifications, }) => {
|
||||
</div>
|
||||
}
|
||||
|
||||
{!isCloud ? (
|
||||
{!isCloud && activeOrgData?.old_org? (
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
|
||||
@@ -812,6 +812,7 @@ const Workflows2 = (props) => {
|
||||
const [isLoadingWorkflow, setIsLoadingWorkflow] = useState(false);
|
||||
const [isLoadingPublicWorkflow, setIsLoadingPublicWorkflow] = useState(false);
|
||||
const [view, setView] = useState(localStorage?.getItem("workflowView") || "grid");
|
||||
const [currentOrg, setCurrentOrg] = useState(null);
|
||||
|
||||
const isCloud = window.location.host === "localhost:3002" || window.location.host === "shuffler.io";
|
||||
const [showExecutionStats, setShowExecutionStats] = React.useState(localStorage?.getItem("showExecutionStats") === "true")
|
||||
@@ -971,6 +972,7 @@ const Workflows2 = (props) => {
|
||||
.then((org) => {
|
||||
if (!fetched && org) {
|
||||
if (!isCloud) {
|
||||
setCurrentOrg(org);
|
||||
if (org?.cloud_sync && org?.subscriptions[0]?.name?.toLowerCase().includes("enterprise") && org?.subscriptions[0]?.active) {
|
||||
setIsProdStatusOn(true);
|
||||
} else if (org?.subscriptions[0]?.name?.toLowerCase().includes("enterprise") && org?.subscriptions[0]?.active) {
|
||||
@@ -5518,7 +5520,7 @@ const Workflows2 = (props) => {
|
||||
</div>
|
||||
}
|
||||
|
||||
{!isCloud ? (
|
||||
{!isCloud && currentOrg?.old_org ? (
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
|
||||
Reference in New Issue
Block a user