Add [...] menu to search results list (#6663)
* Add [...] menu to search results list * fix updates on search results when post is pinned or edited * remove app dispatcher from component
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
816bfbeb91
Коммит
58c6a70d3e
@@ -326,7 +326,8 @@ export function pinPost(postId) {
|
||||
await PostActions.pinPost(postId)(doDispatch, doGetState);
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECEIVED_POST_PINNED
|
||||
type: ActionTypes.RECEIVED_POST_PINNED,
|
||||
postId
|
||||
});
|
||||
};
|
||||
}
|
||||
@@ -336,7 +337,8 @@ export function unpinPost(postId) {
|
||||
await PostActions.unpinPost(postId)(doDispatch, doGetState);
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECEIVED_POST_UNPINNED
|
||||
type: ActionTypes.RECEIVED_POST_UNPINNED,
|
||||
postId
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
@@ -261,6 +261,12 @@ function handlePostEditEvent(msg) {
|
||||
viewChannel(ChannelStore.getCurrentId())(dispatch, getState);
|
||||
}
|
||||
}
|
||||
|
||||
// Needed for search store
|
||||
AppDispatcher.handleViewAction({
|
||||
type: Constants.ActionTypes.POST_UPDATED,
|
||||
post
|
||||
});
|
||||
}
|
||||
|
||||
function handlePostDeleteEvent(msg) {
|
||||
|
||||
Ссылка в новой задаче
Block a user