fix: change staging url to production for public-sign

This commit is contained in:
RaktimaNXG
2024-07-20 18:03:01 +05:30
parent 50a8f93014
commit 2ed3609c46
4 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -653,7 +653,7 @@ function PdfRequestFiles(props) {
`Parse/${localStorage.getItem("parseAppId")}/currentUser`
);
let currentUser = JSON.parse(localuser);
//if emailVerified data is not present in local user details then fetch again in _user class
//if emailVerified data is not present in local user details then fetch again in _User class
if (!currentUser?.emailVerified) {
const userQuery = new Parse.Query(Parse.User);
const getUser = await userQuery.get(currentUser?.objectId, {
@@ -1685,7 +1685,7 @@ function PdfRequestFiles(props) {
{/* this modal is used to show decline alert */}
<PdfDeclineModal
show={isDecline.isDeclined}
headMsg="Document declined"
headMsg="Document decline"
bodyMssg={
isDecline.currnt === "Sure"
? "Are you sure want to decline this document ?"
@@ -974,7 +974,7 @@ const ReportTable = (props) => {
setAlertMsg({
type: "danger",
message:
"The send-in-order for this template is enabled, and the public role must be at the top."
"Since this template has send-in-order enabled, the public role must be positioned at the top."
});
setTimeout(() => setIsAlert(false), 5000);
}
@@ -983,7 +983,7 @@ const ReportTable = (props) => {
setAlertMsg({
type: "danger",
message:
"Please attach signers to all remaining users except the public role user."
"Please attach signers to all roles except for the public role user."
});
setTimeout(() => setIsAlert(false), 5000);
}
+6 -7
View File
@@ -18,12 +18,10 @@ const PublicScriptFileWrapper = ({ initialProps }) => {
return <PdfRequestFiles {...props} />;
};
const appId = process.env.REACT_APP_APPID
? process.env.REACT_APP_APPID
: "opensign";
const serverUrl = process.env.REACT_APP_SERVERURL
? process.env.REACT_APP_SERVERURL
: "https://staging-app.opensignlabs.com/api/app";
const appId = "legadranaxn";
// "opensign";
const serverUrl = "https://app.opensignlabs.com/api/app";
// "https://staging-app.opensignlabs.com/api/app";
localStorage.setItem("baseUrl", `${serverUrl}/`);
localStorage.setItem("parseAppId", appId);
Parse.initialize(appId);
@@ -40,7 +38,8 @@ document.head.appendChild(link);
//add the Tailwind CSS file
const tailwindCssLink = document.createElement("link");
tailwindCssLink.href =
"https://staging-app.opensignlabs.com/static/js/public-template.bundle.css"; // css bundle file
"https://app.opensignlabs.com/static/js/public-template.bundle.css"; // css bundle file
// "https://staging-app.opensignlabs.com/static/js/public-template.bundle.css"; // css bundle file
tailwindCssLink.rel = "stylesheet";
document.head.appendChild(tailwindCssLink);
// Create a root and render the wrapper component with initial props
@@ -138,7 +138,7 @@ const sendMailToAllSigners = async docId => {
});
const imgPng = 'https://qikinnovation.ams3.digitaloceanspaces.com/logo.png';
const objectId = signerMail[i].objectId;
const hostPublicUrl = 'https://staging-app.opensignlabs.com';
const hostPublicUrl = 'https://app.opensignlabs.com';
//encode this url value `${Doc.objectId}/${signerMail[i].Email}/${objectId}` to base64 using `btoa` function
const encodeBase64 = btoa(`${Doc?.objectId}/${signerMail[i].Email}/${objectId}`);