feat: moznost skrytia oznamovacej listy

This commit is contained in:
Jakub_Hostacny committed 2026-10-08 09:53:12 +02:00
1 parent 00d681bec2
commit 680883f047
4 files changed
+75 -12

No files matched your search

+3
View File
@@ -205,6 +205,9 @@ export function renderSingleModuleHtml(m: any, campaign: NewsletterCampaign): st
function renderModule(m: any, campaign: NewsletterCampaign): string {
switch (m.type) {
case 'announcement':
if (m.data?.enabled === false) {
return '';
}
return `
<!-- 0. TOP OZNAMOVACIA LIŠTA -->
<table align="center" role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin: 15px 0 20px 0;">