Displays "this is a premium feature" link when Premium is disabled
This commit is contained in:
@@ -9,7 +9,6 @@ class AutomaticEmailEvent extends React.PureComponent {
|
|||||||
const disabled = event.soon;
|
const disabled = event.soon;
|
||||||
|
|
||||||
let action;
|
let action;
|
||||||
|
|
||||||
if (this.props.premium) {
|
if (this.props.premium) {
|
||||||
action = (
|
action = (
|
||||||
<a
|
<a
|
||||||
@@ -19,7 +18,7 @@ class AutomaticEmailEvent extends React.PureComponent {
|
|||||||
{MailPoet.I18n.t('premiumFeatureLink')}
|
{MailPoet.I18n.t('premiumFeatureLink')}
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
} if (event.actionButtonLink && event.actionButtonTitle) {
|
} else if (event.actionButtonLink && event.actionButtonTitle) {
|
||||||
action = (
|
action = (
|
||||||
<a
|
<a
|
||||||
href={event.actionButtonLink}
|
href={event.actionButtonLink}
|
||||||
|
Reference in New Issue
Block a user