Redirect to the new key activation tab
[MAILPOET-2681]
This commit is contained in:
committed by
Veljko V
parent
8dc3e99606
commit
b45febac63
@@ -56,6 +56,9 @@ if (jQuery('#mailpoet_settings').length > 0) {
|
|||||||
window.location.href = '?page=mailpoet-new-settings#/woocommerce';
|
window.location.href = '?page=mailpoet-new-settings#/woocommerce';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (tab === 'premium') {
|
||||||
|
window.location.href = '?page=mailpoet-new-settings#/premium';
|
||||||
|
}
|
||||||
// reset all active tabs
|
// reset all active tabs
|
||||||
jQuery('.nav-tab-wrapper a').removeClass('nav-tab-active');
|
jQuery('.nav-tab-wrapper a').removeClass('nav-tab-active');
|
||||||
|
|
||||||
|
@@ -48,13 +48,13 @@ export default () => {
|
|||||||
>
|
>
|
||||||
{t('advancedTab')}
|
{t('advancedTab')}
|
||||||
</a>
|
</a>
|
||||||
<a
|
<TabLink
|
||||||
className="nav-tab"
|
name="premium"
|
||||||
href="?page=mailpoet-settings#premium"
|
current={current}
|
||||||
data-automation-id="activation_settings_tab"
|
automationId="activation_settings_tab"
|
||||||
>
|
>
|
||||||
{t('keyActivationTab')}
|
{t('keyActivationTab')}
|
||||||
</a>
|
</TabLink>
|
||||||
</h2>
|
</h2>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
<a class="nav-tab" href="?page=mailpoet-new-settings#/woocommerce" data-automation-id="woocommerce_settings_tab"><%= __('WooCommerce') %></a>
|
<a class="nav-tab" href="?page=mailpoet-new-settings#/woocommerce" data-automation-id="woocommerce_settings_tab"><%= __('WooCommerce') %></a>
|
||||||
<% endif %>
|
<% endif %>
|
||||||
<a class="nav-tab" href="#advanced" data-automation-id="settings-advanced-tab"><%= __('Advanced') %></a>
|
<a class="nav-tab" href="#advanced" data-automation-id="settings-advanced-tab"><%= __('Advanced') %></a>
|
||||||
<a class="nav-tab nav-tab-reload" href="#premium" data-automation-id="activation_settings_tab"><%= __('Key Activation') %></a>
|
<a class="nav-tab nav-tab-reload" href="?page=mailpoet-new-settings#premium" data-automation-id="activation_settings_tab"><%= __('Key Activation') %></a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<!-- sending method -->
|
<!-- sending method -->
|
||||||
|
Reference in New Issue
Block a user