mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 15:51:14 +00:00
fix: Always show advanced post buttons dropdown
This commit is contained in:
parent
a7e5c5ee8a
commit
e8dfaa458a
1 changed files with 39 additions and 52 deletions
|
@ -642,17 +642,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
get hasAdvancedButtons() {
|
|
||||||
return (
|
|
||||||
this.myPost ||
|
|
||||||
(this.showBody && this.postView.post.body) ||
|
|
||||||
amMod(this.props.moderators) ||
|
|
||||||
amAdmin() ||
|
|
||||||
this.canMod_ ||
|
|
||||||
this.canAdmin_
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
showPreviewButton() {
|
showPreviewButton() {
|
||||||
const post_view = this.postView;
|
const post_view = this.postView;
|
||||||
const body = post_view.post.body;
|
const body = post_view.post.body;
|
||||||
|
@ -694,7 +683,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
|
|
||||||
{this.showBody && post_view.post.body && this.viewSourceButton}
|
{this.showBody && post_view.post.body && this.viewSourceButton}
|
||||||
|
|
||||||
{this.hasAdvancedButtons && (
|
|
||||||
<div className="dropdown">
|
<div className="dropdown">
|
||||||
<button
|
<button
|
||||||
className="btn btn-link btn-animate text-muted py-0 dropdown-toggle"
|
className="btn btn-link btn-animate text-muted py-0 dropdown-toggle"
|
||||||
|
@ -737,7 +725,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
)}
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue