mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add select to change board of post
This commit is contained in:
@@ -2,6 +2,7 @@ import { connect } from 'react-redux';
|
||||
|
||||
import { requestPost } from '../actions/requestPost';
|
||||
import { requestComments } from '../actions/requestComments';
|
||||
import { changePostBoard } from '../actions/changePostBoard';
|
||||
import { changePostStatus } from '../actions/changePostStatus';
|
||||
|
||||
import { State } from '../reducers/rootReducer';
|
||||
@@ -18,6 +19,10 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
dispatch(requestPost(postId));
|
||||
},
|
||||
|
||||
changePostBoard(postId: number, newBoardId: number, authenticityToken: string) {
|
||||
dispatch(changePostBoard(postId, newBoardId, authenticityToken));
|
||||
},
|
||||
|
||||
changePostStatus(postId: number, newPostStatusId: number, authenticityToken: string) {
|
||||
if (isNaN(newPostStatusId)) newPostStatusId = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user