diff --git a/mailpoet/assets/js/src/automation/editor/components/inserter-popover/index.tsx b/mailpoet/assets/js/src/automation/editor/components/inserter-popover/index.tsx index 25df047055..ff9f713266 100644 --- a/mailpoet/assets/js/src/automation/editor/components/inserter-popover/index.tsx +++ b/mailpoet/assets/js/src/automation/editor/components/inserter-popover/index.tsx @@ -58,6 +58,7 @@ export function InserterPopover(): JSX.Element | null { utm_medium: 'upsell_modal', utm_campaign: 'add_automation_step', }} + data={{ capabilityName: 'automationSteps' }} > {__('You cannot add a new step to the automation.', 'mailpoet')} diff --git a/mailpoet/assets/js/src/common/premium-modal/upgrade-info.ts b/mailpoet/assets/js/src/common/premium-modal/upgrade-info.ts index 63868738ad..eeef85698c 100644 --- a/mailpoet/assets/js/src/common/premium-modal/upgrade-info.ts +++ b/mailpoet/assets/js/src/common/premium-modal/upgrade-info.ts @@ -145,19 +145,33 @@ export const getUpgradeInfo = ( // f. User has a license but the feature is not available for the plan. if ( capabilityName && - typeof MailPoet.capabilities[capabilityName] === 'boolean' && - !MailPoet.capabilities[capabilityName] + ((typeof MailPoet.capabilities[capabilityName] === 'boolean' && + !MailPoet.capabilities[capabilityName]) || + (typeof MailPoet.capabilities[capabilityName] === 'number' && + MailPoet.capabilities[capabilityName] > 0)) ) { - let info = __( - 'Please upgrade your MailPoet plan to gain access to this feature.', - 'mailpoet', - ); - if (capabilityName === 'detailedAnalytics') { - info = __( - 'Upgrade your MailPoet plan to gain detailed insights into how your subscribers engage with your automations and their purchasing behaviors.', - 'mailpoet', - ); + let info: string; + + switch (capabilityName) { + case 'detailedAnalytics': + info = __( + 'Upgrade your MailPoet plan to gain detailed insights into how your subscribers engage with your automations and their purchasing behaviors.', + 'mailpoet', + ); + break; + case 'automationSteps': + info = __( + 'Automation journeys are not available in your current plan. Upgrade your MailPoet plan to design personalized journeys with multiple steps and conditional branching logic.', + 'mailpoet', + ); + break; + default: + info = __( + 'Please upgrade your MailPoet plan to gain access to this feature.', + 'mailpoet', + ); } + return { title: __('Upgrade your MailPoet plan', 'mailpoet'), info,