Add link to KB

[MAILPOET-2101]
This commit is contained in:
Pavel Dohnal
2019-06-19 15:22:27 +02:00
committed by M. Shull
parent 51cfb48c75
commit a75499d4fe
2 changed files with 5 additions and 1 deletions

View File

@@ -161,6 +161,10 @@ jQuery(document).ready(() => {
? MailPoet.I18n.t('importNoticeRoleBased')
.replace('%1$s', `<strong>${subscribers.role.length.toLocaleString()}</strong>`)
.replace('%2$s', subscribers.role.join(', '))
.replace(
/\[link](.+)\[\/link]/,
'<a href="https://kb.mailpoet.com/article/270-role-based-email-addresses-are-not-allowed" target="_blank" rel="noopener noreferrer">$1</a>'
)
: null,
};
jQuery('#subscribers_data_parse_results').html(