feat: update signature placeholder in preview to provide user-friendly message
This commit is contained in:
parent
160f58d64d
commit
edeacea8ea
@ -1587,8 +1587,8 @@ exports.previewLatestForMe = async (req, res) => {
|
||||
html = html.replace(new RegExp(`{{\s*${k}\s*}}`, 'g'), String(v ?? ''));
|
||||
});
|
||||
|
||||
// Strip signature placeholder in preview (not signed yet)
|
||||
html = html.replace(/{{\s*signatureImage\s*}}/g, '');
|
||||
// Show a friendly placeholder for signature in preview (not signed yet)
|
||||
html = html.replace(/{{\s*signatureImage\s*}}/g, 'Your signature will appear here');
|
||||
|
||||
// Remove any remaining placeholders except stamp/signature markers
|
||||
html = sanitizePlaceholders(html, ['companyStamp','companyStampInline','companyStampSmall','profitplanetSignature']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user