Show next button in last import step as "Import"

[MAILPOET-3073]
This commit is contained in:
Ján Mikláš
2020-10-27 17:32:17 +01:00
committed by Veljko V
parent 206c40c664
commit d96f6efb63
3 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import Button from 'common/button/button';
const PreviousNextStepButtons = ({
hidePrevious,
isLastStep,
canGoNext,
onPreviousAction,
onNextAction,
@@ -25,7 +26,7 @@ const PreviousNextStepButtons = ({
}
}}
>
{MailPoet.I18n.t('nextStep')}
{MailPoet.I18n.t(isLastStep ? 'import' : 'nextStep')}
</Button>
</div>
);
@@ -33,12 +34,14 @@ const PreviousNextStepButtons = ({
PreviousNextStepButtons.propTypes = {
canGoNext: PropTypes.bool,
hidePrevious: PropTypes.bool,
isLastStep: PropTypes.bool,
onPreviousAction: PropTypes.func,
onNextAction: PropTypes.func,
};
PreviousNextStepButtons.defaultProps = {
hidePrevious: false,
isLastStep: false,
canGoNext: true,
onPreviousAction: () => {},
onNextAction: () => {},

View File

@@ -91,6 +91,7 @@ function StepDataManipulation({
)
)}
onNextAction={importSubscribers}
isLastStep
/>
</div>
</div>

View File

@@ -98,6 +98,7 @@
'validationStepLastSentNext': __('Next'),
'previousStep': __('Previous step'),
'nextStep': __('Next step'),
'import': __('Import'),
'seeVideo': __(' See video guide'),
'importAgain': __('Import again'),
'viewSubscribers': __('View subscribers'),