diff --git a/apps/OpenSign/src/components/Header.js b/apps/OpenSign/src/components/Header.js index 20a8ff6d7..d6905caac 100644 --- a/apps/OpenSign/src/components/Header.js +++ b/apps/OpenSign/src/components/Header.js @@ -5,7 +5,7 @@ import { useNavigate } from "react-router-dom"; import Parse from "parse"; import { useWindowSize } from "../hook/useWindowSize"; import { checkIsSubscribed, getAppLogo, openInNewTab } from "../constant/Utils"; -import { isEnableSubscription } from "../constant/const"; +import { isEnableSubscription, isStaging } from "../constant/const"; const Header = ({ showSidebar }) => { const navigate = useNavigate(); @@ -86,7 +86,7 @@ const Header = ({ showSidebar }) => { }; }, [isOpen]); const handleConsoleRedirect = () => { - if (window.location.host === "staging-app.opensignlabs.com") { + if (isStaging) { window.open(" https://staging-console.opensignlabs.com/"); } else { window.open("https://console.opensignlabs.com/"); diff --git a/apps/OpenSign/src/pages/UserProfile.js b/apps/OpenSign/src/pages/UserProfile.js index 2e945fe7b..d48fea6db 100644 --- a/apps/OpenSign/src/pages/UserProfile.js +++ b/apps/OpenSign/src/pages/UserProfile.js @@ -107,7 +107,7 @@ function UserProfile() { let phn = Phone, res = ""; //condition to call cloud function when user change publicUserName - if (previousPublicUserName.current !== publicUserName) { + if (publicUserName && previousPublicUserName.current !== publicUserName) { res = await handleCheckPublicUserName(); } if (!res) { @@ -185,6 +185,7 @@ function UserProfile() { const json = JSON.parse(JSON.stringify([res])); const extRes = JSON.stringify(json); localStorage.setItem("Extand_Class", extRes); + previousPublicUserName.current = publicUserName; // console.log("updateRes ", updateRes); }; // file upload function diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.js index 79e2c625e..26492e078 100644 --- a/apps/OpenSign/src/primitives/GetReportDisplay.js +++ b/apps/OpenSign/src/primitives/GetReportDisplay.js @@ -1240,42 +1240,18 @@ const ReportTable = (props) => {
{props.isPublic[item.objectId] ? `Are you sure you want to make this template public ?` - : `Are you sure you want to make this template private ? This will remove it from your public profile ?`} + : `Are you sure you want to make this template private? This will remove it from your public profile.`}
{props.isPublic[item.objectId] && (Public role :{" "}
- {/* {item?.Placeholders?.length > 1 ? ( - - ) : ( */} + - {/* {item?.Placeholders[0]?.Role} */} - {/* {handleShowRole(item)} */} - {/*- Here’s your public URL. Copy or share - it with the signer, and you will be - able to see all your publicly set + Here’s your public URL: Copy it or + share it with the signer, and you will + be able to see all your publicly set templates.
-