well, fix confirmation modal after fixing a typo
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
2fbac4600c
commit
8be889734c
|
@ -236,7 +236,10 @@ export function submitCompose(routerHistory, force = false) {
|
||||||
|
|
||||||
if (!force && needsDescriptions(state)) {
|
if (!force && needsDescriptions(state)) {
|
||||||
dispatch(openModal('MISSING_DESCRIPTION', {
|
dispatch(openModal('MISSING_DESCRIPTION', {
|
||||||
onContinue: () => dispatch(submitCompose(routerHistory, true)),
|
onContinue: () => {
|
||||||
|
dispatch(closeModal('MISSING_DESCRIPTION'));
|
||||||
|
dispatch(submitCompose(routerHistory, true));
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ class ConfirmationModal extends React.PureComponent {
|
||||||
cancelText={<FormattedMessage id='confirmation_modal.cancel' defaultMessage='Cancel' />}
|
cancelText={<FormattedMessage id='confirmation_modal.cancel' defaultMessage='Cancel' />}
|
||||||
cancelAction={this.handleCancel}
|
cancelAction={this.handleCancel}
|
||||||
secondaryText={secondary}
|
secondaryText={secondary}
|
||||||
secondaryAction={this.handleSecondary}
|
secondaryAction={this.props.onSecondary && this.handleSecondary}
|
||||||
>
|
>
|
||||||
<p className='text-gray-600 dark:text-gray-300'>{message}</p>
|
<p className='text-gray-600 dark:text-gray-300'>{message}</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue