diff --git a/src/pages/news/components/button-push2video.tsx b/src/pages/news/components/button-push2video.tsx index 0970865..e5b33ad 100644 --- a/src/pages/news/components/button-push2video.tsx +++ b/src/pages/news/components/button-push2video.tsx @@ -35,6 +35,7 @@ export default function ButtonPush2Video(props: PushVideoProps) { const skip = action === ProcessResult.Skip && state.errorIds.length > 0 const ids = !skip ? props.ids : props.ids.filter(id => !state.errorIds.includes(id)); push2video(ids).then(() => { + setState({modalVisible: false}) if (skip) { props.onResult?.(ProcessResult.Skip, state.errorIds || []) return; @@ -72,45 +73,10 @@ export default function ButtonPush2Video(props: PushVideoProps) { // check article content const result = checkArticleContent() setState({modalVisible: true, errorTitle: result.errors, errorIds: result.ids}) - // - // const instance = modal.confirm({ - // title:
{t('modal.warning')}
, - // wrapClassName: 'root-modal-confirm', - // centered: true, - // width: 440, - // icon: , - // content:
- //
- // {t( - // errors && errors.length > 0 - // ? (props.ids.length == 1 ? 'modal.push_article.content_error_single' : 'modal.push_article.content_error') - // : (props.ids.length == 1 ? 'modal.push_article.content_normal_single' : 'modal.push_article.content_normal'), - // {count: props.ids.length, error_count: errors?.length})} - //
- // {errors && errors.length > 0 &&
- //
{t('modal.push_article.error_title')}:
- //
- // {errors.map(s =>
{s}
)} - //
- //
} - //
, - // footer:
- // - // - // - // - // - //
, - // }) - // handlePush(); } return (
- - {state.errorIds?.length > 0 && } - +