This commit is contained in:
=bhagwanSingh 2025-08-20 12:41:37 +05:30
parent a496f9d207
commit ee6160ff71
4 changed files with 25 additions and 8 deletions

View File

@ -689,6 +689,11 @@ const SignDocument = () => {
isDeleted: false isDeleted: false
} }
if(prepData.type === "NAME") {
prepData.firstName = true
prepData.lastName = true
}
if ("group" in dragElemData) { if ("group" in dragElemData) {
prepData.group = dragElemData.group; prepData.group = dragElemData.group;
prepData.isGroupExist = false; prepData.isGroupExist = false;
@ -931,7 +936,7 @@ const SignDocument = () => {
})() })()
}; };
console.log(droppedItems, "droppedItems Line 934")
// const [showTerms, setShowTerms] = useState<boolean>(true); // const [showTerms, setShowTerms] = useState<boolean>(true);
@ -1260,9 +1265,11 @@ const SignDocument = () => {
e.currentTarget.focus(); // Optional: return focus if invalid e.currentTarget.focus(); // Optional: return focus if invalid
} }
}} }}
contentEditable={true} // contentEditable={true}
className="outline-none whitespace-nowrap w-full max-h-max" className="outline-none whitespace-nowrap w-full max-h-max"
></p> >
{recipient?.email || ""}
</p>
} }
</div> </div>
} }
@ -1294,9 +1301,14 @@ const SignDocument = () => {
onBlur={(e) => { onBlur={(e) => {
}} }}
contentEditable={true} // contentEditable={true}
className="outline-none whitespace-nowrap w-full max-h-max" className="outline-none whitespace-nowrap w-full max-h-max"
></p> >
{item.firstName && recipient?.firstName+" " }
{item.lastName && recipient?.lastName }
</p>
} }
</div> </div>
} }

View File

@ -126,10 +126,10 @@ const NavTwo: React.FC<NavTwoProps> = ({ transactionSaving, isFields, setIsField
setTimeout(() => { setTimeout(() => {
if (transactionTemplateToggle === TRANSACTION_TEMPLATE_TOGGLE.TRANSACTIONS) { if (transactionTemplateToggle === TRANSACTION_TEMPLATE_TOGGLE.TRANSACTIONS) {
if (isSignSend) { if (isSignSend) {
// navigate(`./../../../sign/${selfUserSign.recipientId}`,{ replace: true }); navigate(`./../../../sign/${selfUserSign.recipientId}`,{ replace: true });
} }
else { else {
// navigate(`/document-completion-screen/${accountId}/${transactionId}`, { replace: true }) navigate(`/document-completion-screen/${accountId}/${transactionId}`, { replace: true })
} }
} else { } else {
navigate(`/templates`); navigate(`/templates`);

View File

@ -50,6 +50,7 @@ const AuditModal: React.FC<AuditModalProps> = ({ closeModal }) => {
setLoading(true) setLoading(true)
try { 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=${userDetails.language || ''}`)
// let res = await api.get(`/api/accounts/${accountId}/transactions/${transactionId}/audit?lang=hi`)
if (res?.status === 200) { if (res?.status === 200) {
// console.log(res?.data?.events) // console.log(res?.data?.events)
let auditResponse = res?.data?.events let auditResponse = res?.data?.events

View File

@ -465,7 +465,11 @@ export const fetchRecipients = createAsyncThunk<
const basePath = `/api/accounts/${accountId}/${toggle}/${transactionId}/recipients`; const basePath = `/api/accounts/${accountId}/${toggle}/${transactionId}/recipients`;
const response = await api.get(basePath); 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')) { 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 window.location.href = window.location.href.replace("process-step-two", "process-step-one") // ✅ navigate using window