mirror of
https://github.com/wassname/talk.git
synced 2026-07-23 13:10:20 +08:00
Changes
This commit is contained in:
@@ -35,7 +35,7 @@ const routes = (
|
||||
{/* Moderation Routes */}
|
||||
|
||||
<Route path='moderate' component={ModerationLayout}>
|
||||
|
||||
<IndexRoute component={Moderation} />
|
||||
<Route path='all' components={Moderation}>
|
||||
<Route path=':id' components={Moderation} />
|
||||
</Route>
|
||||
|
||||
@@ -73,7 +73,7 @@ const StorySearch = (props) => {
|
||||
createdAt={new Date(story.created_at).toISOString()}
|
||||
open={storyOpen}
|
||||
author={story.author}
|
||||
goToStory={() => props.goToStory(story.id, isPremod(story.settings.moderation))}
|
||||
goToStory={() => props.goToStory(story.id)}
|
||||
/>;
|
||||
})
|
||||
}
|
||||
|
||||
@@ -57,9 +57,9 @@ class StorySearchContainer extends React.Component {
|
||||
this.props.storySearchChange(searchValue);
|
||||
}
|
||||
|
||||
goToStory = (id, premod) => {
|
||||
goToStory = (id) => {
|
||||
const {router} = this.props;
|
||||
router.push(`/admin/moderate/${premod ? 'premod' : 'new'}/${id}`);
|
||||
router.push(`/admin/moderate/${id}`);
|
||||
this.clearAndCloseSearch();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user