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

This commit is contained in:
RaktimaNXG
2023-10-31 16:01:19 +05:30
parent 0c5e7c447f
commit 76960572e8
3 changed files with 6 additions and 6 deletions
@@ -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`);
}
};
@@ -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}`;
}
@@ -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",