This commit is contained in:
parent
a496f9d207
commit
ee6160ff71
|
|
@ -689,6 +689,11 @@ const SignDocument = () => {
|
|||
isDeleted: false
|
||||
}
|
||||
|
||||
if(prepData.type === "NAME") {
|
||||
prepData.firstName = true
|
||||
prepData.lastName = true
|
||||
}
|
||||
|
||||
if ("group" in dragElemData) {
|
||||
prepData.group = dragElemData.group;
|
||||
prepData.isGroupExist = false;
|
||||
|
|
@ -931,7 +936,7 @@ const SignDocument = () => {
|
|||
})()
|
||||
};
|
||||
|
||||
|
||||
console.log(droppedItems, "droppedItems Line 934")
|
||||
|
||||
|
||||
// const [showTerms, setShowTerms] = useState<boolean>(true);
|
||||
|
|
@ -1260,9 +1265,11 @@ const SignDocument = () => {
|
|||
e.currentTarget.focus(); // Optional: return focus if invalid
|
||||
}
|
||||
}}
|
||||
contentEditable={true}
|
||||
// contentEditable={true}
|
||||
className="outline-none whitespace-nowrap w-full max-h-max"
|
||||
></p>
|
||||
>
|
||||
{recipient?.email || ""}
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
|
@ -1294,9 +1301,14 @@ const SignDocument = () => {
|
|||
onBlur={(e) => {
|
||||
|
||||
}}
|
||||
contentEditable={true}
|
||||
// contentEditable={true}
|
||||
className="outline-none whitespace-nowrap w-full max-h-max"
|
||||
></p>
|
||||
>
|
||||
{item.firstName && recipient?.firstName+" " }
|
||||
{item.lastName && recipient?.lastName }
|
||||
|
||||
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,10 +126,10 @@ const NavTwo: React.FC<NavTwoProps> = ({ transactionSaving, isFields, setIsField
|
|||
setTimeout(() => {
|
||||
if (transactionTemplateToggle === TRANSACTION_TEMPLATE_TOGGLE.TRANSACTIONS) {
|
||||
if (isSignSend) {
|
||||
// navigate(`./../../../sign/${selfUserSign.recipientId}`,{ replace: true });
|
||||
navigate(`./../../../sign/${selfUserSign.recipientId}`,{ replace: true });
|
||||
}
|
||||
else {
|
||||
// navigate(`/document-completion-screen/${accountId}/${transactionId}`, { replace: true })
|
||||
navigate(`/document-completion-screen/${accountId}/${transactionId}`, { replace: true })
|
||||
}
|
||||
} else {
|
||||
navigate(`/templates`);
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ const AuditModal: React.FC<AuditModalProps> = ({ closeModal }) => {
|
|||
setLoading(true)
|
||||
try {
|
||||
let res = await api.get(`/api/accounts/${accountId}/transactions/${transactionId}/audit?lang=${userDetails.language || ''}`)
|
||||
// let res = await api.get(`/api/accounts/${accountId}/transactions/${transactionId}/audit?lang=hi`)
|
||||
if (res?.status === 200) {
|
||||
// console.log(res?.data?.events)
|
||||
let auditResponse = res?.data?.events
|
||||
|
|
|
|||
|
|
@ -465,8 +465,12 @@ export const fetchRecipients = createAsyncThunk<
|
|||
const basePath = `/api/accounts/${accountId}/${toggle}/${transactionId}/recipients`;
|
||||
const response = await api.get(basePath);
|
||||
|
||||
const data = response.data as Recipient[];
|
||||
let data = response.data as Recipient[];
|
||||
|
||||
data = data.filter((recipient, indx) => {
|
||||
return recipient.type !== "CC";
|
||||
})
|
||||
|
||||
if (data.length === 0 && window.location.pathname.includes('/process-step-two')) {
|
||||
window.location.href = window.location.href.replace("process-step-two", "process-step-one") // ✅ navigate using window
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue