Show next button in last import step as "Import"
[MAILPOET-3073]
This commit is contained in:
@@ -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: () => {},
|
||||
|
@@ -91,6 +91,7 @@ function StepDataManipulation({
|
||||
)
|
||||
)}
|
||||
onNextAction={importSubscribers}
|
||||
isLastStep
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -98,6 +98,7 @@
|
||||
'validationStepLastSentNext': __('Next'),
|
||||
'previousStep': __('Previous step'),
|
||||
'nextStep': __('Next step'),
|
||||
'import': __('Import'),
|
||||
'seeVideo': __(' See video guide'),
|
||||
'importAgain': __('Import again'),
|
||||
'viewSubscribers': __('View subscribers'),
|
||||
|
Reference in New Issue
Block a user