diff options
author | Dessalines <tyhou13@gmx.com> | 2020-02-29 22:16:52 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-02-29 22:16:52 -0500 |
commit | 59391b23694ed6ade2db9b8b5c7d2aea7b25a1bb (patch) | |
tree | 976b7844e9442a9d20fb5993d503a5a640f11c31 /ui/src/components/post-listing.tsx | |
parent | 399be2370d375e49183968ba56872c0c198e1812 (diff) |
Moving view source.
Diffstat (limited to 'ui/src/components/post-listing.tsx')
-rw-r--r-- | ui/src/components/post-listing.tsx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index d57aa663..519c7f74 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -525,6 +525,16 @@ export class PostListing extends Component<PostListingProps, PostListingState> { </li> ) : ( <> + {this.props.showBody && post.body && ( + <li className="list-inline-item"> + <span + className="pointer" + onClick={linkEvent(this, this.handleViewSource)} + > + {i18n.t('view_source')} + </span> + </li> + )} {this.canModOnSelf && ( <> <li className="list-inline-item"> @@ -747,16 +757,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> { )} </> )} - {this.props.showBody && post.body && ( - <li className="list-inline-item"> - <span - className="pointer" - onClick={linkEvent(this, this.handleViewSource)} - > - {i18n.t('view_source')} - </span> - </li> - )} </ul> {this.state.showRemoveDialog && ( <form |