feat: Enhance InterestDuplicateNotificationBanner to always check for duplicates on mount and improve PDF generation to return base64 content
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user