Replace old advanced tab with the new one
This commit is contained in:
committed by
Veljko V
parent
540bdba941
commit
d6ac430a0e
@@ -62,6 +62,9 @@ if (jQuery('#mailpoet_settings').length > 0) {
|
|||||||
if (tab === 'signup') {
|
if (tab === 'signup') {
|
||||||
window.location.href = '?page=mailpoet-new-settings#/signup';
|
window.location.href = '?page=mailpoet-new-settings#/signup';
|
||||||
}
|
}
|
||||||
|
if (tab === 'advanced') {
|
||||||
|
window.location.href = '?page=mailpoet-new-settings#/advanced';
|
||||||
|
}
|
||||||
// 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');
|
||||||
|
|
||||||
|
@@ -41,13 +41,13 @@ export default () => {
|
|||||||
{t('wooCommerceTab')}
|
{t('wooCommerceTab')}
|
||||||
</TabLink>
|
</TabLink>
|
||||||
)}
|
)}
|
||||||
<a
|
<TabLink
|
||||||
className="nav-tab"
|
name="advanced"
|
||||||
href="?page=mailpoet-settings#advanced"
|
current={current}
|
||||||
data-automation-id="settings-advanced-tab"
|
automationId="settings-advanced-tab"
|
||||||
>
|
>
|
||||||
{t('advancedTab')}
|
{t('advancedTab')}
|
||||||
</a>
|
</TabLink>
|
||||||
<TabLink
|
<TabLink
|
||||||
name="premium"
|
name="premium"
|
||||||
current={current}
|
current={current}
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
<% if is_woocommerce_active %>
|
<% if is_woocommerce_active %>
|
||||||
<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="?page=mailpoet-new-settings#/advanced" data-automation-id="settings-advanced-tab"><%= __('Advanced') %></a>
|
||||||
<a class="nav-tab nav-tab-reload" href="?page=mailpoet-new-settings#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>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user