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 = ({
|
const PreviousNextStepButtons = ({
|
||||||
hidePrevious,
|
hidePrevious,
|
||||||
|
isLastStep,
|
||||||
canGoNext,
|
canGoNext,
|
||||||
onPreviousAction,
|
onPreviousAction,
|
||||||
onNextAction,
|
onNextAction,
|
||||||
@@ -25,7 +26,7 @@ const PreviousNextStepButtons = ({
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{MailPoet.I18n.t('nextStep')}
|
{MailPoet.I18n.t(isLastStep ? 'import' : 'nextStep')}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -33,12 +34,14 @@ const PreviousNextStepButtons = ({
|
|||||||
PreviousNextStepButtons.propTypes = {
|
PreviousNextStepButtons.propTypes = {
|
||||||
canGoNext: PropTypes.bool,
|
canGoNext: PropTypes.bool,
|
||||||
hidePrevious: PropTypes.bool,
|
hidePrevious: PropTypes.bool,
|
||||||
|
isLastStep: PropTypes.bool,
|
||||||
onPreviousAction: PropTypes.func,
|
onPreviousAction: PropTypes.func,
|
||||||
onNextAction: PropTypes.func,
|
onNextAction: PropTypes.func,
|
||||||
};
|
};
|
||||||
|
|
||||||
PreviousNextStepButtons.defaultProps = {
|
PreviousNextStepButtons.defaultProps = {
|
||||||
hidePrevious: false,
|
hidePrevious: false,
|
||||||
|
isLastStep: false,
|
||||||
canGoNext: true,
|
canGoNext: true,
|
||||||
onPreviousAction: () => {},
|
onPreviousAction: () => {},
|
||||||
onNextAction: () => {},
|
onNextAction: () => {},
|
||||||
|
@@ -91,6 +91,7 @@ function StepDataManipulation({
|
|||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
onNextAction={importSubscribers}
|
onNextAction={importSubscribers}
|
||||||
|
isLastStep
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -98,6 +98,7 @@
|
|||||||
'validationStepLastSentNext': __('Next'),
|
'validationStepLastSentNext': __('Next'),
|
||||||
'previousStep': __('Previous step'),
|
'previousStep': __('Previous step'),
|
||||||
'nextStep': __('Next step'),
|
'nextStep': __('Next step'),
|
||||||
|
'import': __('Import'),
|
||||||
'seeVideo': __(' See video guide'),
|
'seeVideo': __(' See video guide'),
|
||||||
'importAgain': __('Import again'),
|
'importAgain': __('Import again'),
|
||||||
'viewSubscribers': __('View subscribers'),
|
'viewSubscribers': __('View subscribers'),
|
||||||
|
Reference in New Issue
Block a user