feat: Enhance InterestDuplicateNotificationBanner to always check for duplicates on mount and improve PDF generation to return base64 content

This commit is contained in:
2025-07-09 16:28:04 -04:00
parent bf24dc9103
commit 8f625c0df4
3 changed files with 201 additions and 39 deletions

View File

@@ -89,16 +89,10 @@ const dismissBanner = () => {
// Check if banner was already dismissed this session
onMounted(() => {
if (process.client) {
const dismissed = sessionStorage.getItem('interest-duplicates-banner-dismissed');
if (dismissed === 'true') {
showBanner.value = false;
return;
}
}
// Always check for duplicates - remove session storage blocking for debugging
console.log('[InterestDuplicateNotification] Component mounted, checking for duplicates...');
// Check for duplicates for sales/admin users
// Small delay to let other components load first
setTimeout(checkForDuplicates, 2000);
// Check for duplicates for sales/admin users immediately
checkForDuplicates();
});
</script>