Redirect to the new key activation tab

[MAILPOET-2681]
This commit is contained in:
Amine Ben hammou
2020-03-30 07:07:14 +02:00
committed by Veljko V
parent 8dc3e99606
commit b45febac63
3 changed files with 9 additions and 6 deletions

View File

@@ -56,6 +56,9 @@ if (jQuery('#mailpoet_settings').length > 0) {
window.location.href = '?page=mailpoet-new-settings#/woocommerce';
}
}
if (tab === 'premium') {
window.location.href = '?page=mailpoet-new-settings#/premium';
}
// reset all active tabs
jQuery('.nav-tab-wrapper a').removeClass('nav-tab-active');

View File

@@ -48,13 +48,13 @@ export default () => {
>
{t('advancedTab')}
</a>
<a
className="nav-tab"
href="?page=mailpoet-settings#premium"
data-automation-id="activation_settings_tab"
<TabLink
name="premium"
current={current}
automationId="activation_settings_tab"
>
{t('keyActivationTab')}
</a>
</TabLink>
</h2>
);
};