Redirect to new settings

[MAILPOET-2679]
This commit is contained in:
Amine Ben hammou
2020-04-07 21:56:11 +02:00
committed by Veljko V
parent b33181d433
commit 0a8988191c
2 changed files with 6 additions and 7 deletions

View File

@@ -27,8 +27,7 @@ if (jQuery('#mailpoet_settings').length > 0) {
jQuery('.mailpoet_settings_submit').hide(); jQuery('.mailpoet_settings_submit').hide();
if (group === null) { if (group === null) {
// show sending methods window.location.href = '?page=mailpoet-new-settings#/mta';
jQuery('.mailpoet_sending_methods, .mailpoet_sending_methods_help').fadeIn();
} else { } else {
// toggle SPF (hidden if the sending method is MailPoet) // toggle SPF (hidden if the sending method is MailPoet)
jQuery('#mailpoet_mta_spf')[ jQuery('#mailpoet_mta_spf')[

View File

@@ -25,13 +25,13 @@ export default () => {
> >
{t('signupConfirmationTab')} {t('signupConfirmationTab')}
</TabLink> </TabLink>
<a <TabLink
className="nav-tab" name="mta"
href="?page=mailpoet-settings#mta" current={current}
data-automation-id="send_with_settings_tab" automationId="send_with_settings_tab"
> >
{t('sendWithTab')} {t('sendWithTab')}
</a> </TabLink>
{hasWooCommerce && ( {hasWooCommerce && (
<TabLink <TabLink
name="woocommerce" name="woocommerce"