Skip to content

πŸ”₯ The free & Open Source DocuSign alternative

handled issue signyourself completed document is not open correct file in legadrive and report(completed)

RaktimaNXG76960572e8f6
diff --git a/microfrontends/SignDocuments/src/Component/DraftDocument.js b/microfrontends/SignDocuments/src/Component/DraftDocument.js
index f6c5c09a4..6534c1ddb 100644
--- a/microfrontends/SignDocuments/src/Component/DraftDocument.js
+++ b/microfrontends/SignDocuments/src/Component/DraftDocument.js
@@ -82,7 +82,7 @@ function DraftDocument() {
else if (data.IsCompleted && !checkSignerExist) {
// window.location.hash = `/recipientSignPdf/${data.objectId}/${data.ExtUserPtr.Phone}`;
navigate(
- `${hostUrl}recipientSignPdf/${data.objectId}/${data.ExtUserPtr.Phone}`
+ `${hostUrl}signaturePdf`
);
}
//checking document is declined by someone then navigate to pdfRequestFiles file
@@ -123,7 +123,7 @@ function DraftDocument() {
// window.location.hash = `/placeHolderSign`;
} else {
// window.location.hash = `/signaturePdf/`;
- navigate(`${hostUrl}signaturePdf/`);
+ navigate(`${hostUrl}signaturePdf`);
}
};
diff --git a/microfrontends/SignDocuments/src/Component/LegaDrive/FolderDrive/legaDriveComponent.js b/microfrontends/SignDocuments/src/Component/LegaDrive/FolderDrive/legaDriveComponent.js
index 93ce5b94f..ab7d1bd4c 100644
--- a/microfrontends/SignDocuments/src/Component/LegaDrive/FolderDrive/legaDriveComponent.js
+++ b/microfrontends/SignDocuments/src/Component/LegaDrive/FolderDrive/legaDriveComponent.js
@@ -99,7 +99,7 @@ function PdfFileComponent({
//function for navigate user to microapp-signature component
const checkPdfStatus = async (data) => {
- // console.log("document", data);
+
const hostUrl = getHostUrl();
const expireDate = data.ExpiryDate.iso;
const expireUpdateDate = new Date(expireDate).getTime();
@@ -117,7 +117,7 @@ function PdfFileComponent({
// window.location.hash = `/pdfRequestFiles/${data.objectId}`;
} else if (data.IsCompleted && !signerExist) {
navigate(
- `${hostUrl}recipientSignPdf/${data.objectId}/${data.ExtUserPtr.Phone}`
+ `${hostUrl}signaturePdf/${data.objectId}`
);
// window.location.hash = `/recipientSignPdf/${data.objectId}/${data.ExtUserPtr.Phone}`;
}
diff --git a/microfrontends/SignDocuments/src/utils/Utils.js b/microfrontends/SignDocuments/src/utils/Utils.js
index 79ad7f19b..c011fc0ec 100644
--- a/microfrontends/SignDocuments/src/utils/Utils.js
+++ b/microfrontends/SignDocuments/src/utils/Utils.js
@@ -255,12 +255,12 @@ export const contactBook = async (objectId) => {
return result;
};
-export const contactBookName = async (userPhone, className) => {
+export const contactBookName = async (objectId, className) => {
const result = await axios
.get(
`${localStorage.getItem("baseUrl")}classes/${localStorage.getItem(
"_appName"
- )}${className}?where={"objectId":"${userPhone}"}`,
+ )}${className}?where={"objectId":"${objectId}"}`,
{
headers: {
"Content-Type": "application/json",