mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 03:11:25 +00:00
Don't hide the 'show source' button for anonymous users (#2127)
This commit is contained in:
parent
d98009c7d5
commit
a5366ddf7a
1 changed files with 5 additions and 3 deletions
|
@ -604,7 +604,8 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
commentsLine(mobile = false) {
|
commentsLine(mobile = false) {
|
||||||
const post = this.postView.post;
|
const post_view = this.postView;
|
||||||
|
const post = post_view.post;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="d-flex align-items-center justify-content-start flex-wrap text-muted">
|
<div className="d-flex align-items-center justify-content-start flex-wrap text-muted">
|
||||||
|
@ -637,6 +638,9 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
my_vote={this.postView.my_vote}
|
my_vote={this.postView.my_vote}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{this.props.showBody && post_view.post.body && this.viewSourceButton}
|
||||||
|
|
||||||
{UserService.Instance.myUserInfo &&
|
{UserService.Instance.myUserInfo &&
|
||||||
!this.props.viewOnly &&
|
!this.props.viewOnly &&
|
||||||
this.postActions()}
|
this.postActions()}
|
||||||
|
@ -655,8 +659,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
{this.saveButton}
|
{this.saveButton}
|
||||||
{this.crossPostButton}
|
{this.crossPostButton}
|
||||||
|
|
||||||
{this.props.showBody && post_view.post.body && this.viewSourceButton}
|
|
||||||
|
|
||||||
<div className="dropdown">
|
<div className="dropdown">
|
||||||
<button
|
<button
|
||||||
className="btn btn-sm btn-link btn-animate text-muted py-0 dropdown-toggle"
|
className="btn btn-sm btn-link btn-animate text-muted py-0 dropdown-toggle"
|
||||||
|
|
Loading…
Reference in a new issue