fix: draft type document in open-sign drive & disable placeholder click behavior for other signers in mobile view

This commit is contained in:
RaktimaNXG
2024-01-19 21:17:38 +05:30
parent e85bbb7bd9
commit 1f16123865
5 changed files with 123 additions and 95 deletions
@@ -51,7 +51,7 @@ function DraftDocument() {
const signerExist = data.Signers && data.Signers;
const isDecline = data.IsDeclined && data.IsDeclined;
const isPlaceholder = data.Placeholders && data.Placeholders;
const signedUrl = data.SignedUrl;
//checking if document has completed and request signature flow
if (data?.IsCompleted && signerExist?.length > 0) {
navigate(`${hostUrl}pdfRequestFiles/${data.objectId}`);
@@ -64,6 +64,12 @@ function DraftDocument() {
else if (isDecline) {
navigate(`${hostUrl}pdfRequestFiles/${data.objectId}`);
//checking draft type document
} else if (
signerExist?.length > 0 &&
isPlaceholder?.length > 0 &&
!signedUrl
) {
navigate(`${hostUrl}placeHolderSign/${data.objectId}`);
}
//Inprogress document
else if (isPlaceholder?.length > 0 && signerExist?.length > 0) {