mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-09 01:54:02 +00:00
feat(UI): Hide avatars on listings
This commit is contained in:
parent
973bab1313
commit
528aed7f58
|
@ -106,6 +106,7 @@ interface PostListingProps {
|
||||||
siteLanguages: number[];
|
siteLanguages: number[];
|
||||||
showCommunity?: boolean;
|
showCommunity?: boolean;
|
||||||
showBody?: boolean;
|
showBody?: boolean;
|
||||||
|
hideAvatars?: boolean;
|
||||||
hideImage?: boolean;
|
hideImage?: boolean;
|
||||||
enableDownvotes?: boolean;
|
enableDownvotes?: boolean;
|
||||||
enableNsfw?: boolean;
|
enableNsfw?: boolean;
|
||||||
|
@ -397,7 +398,10 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
const post_view = this.postView;
|
const post_view = this.postView;
|
||||||
return (
|
return (
|
||||||
<span className="small">
|
<span className="small">
|
||||||
<PersonListing person={post_view.creator} />
|
<PersonListing
|
||||||
|
person={post_view.creator}
|
||||||
|
hideAvatar={this.props.hideAvatars}
|
||||||
|
/>
|
||||||
{this.creatorIsMod_ && (
|
{this.creatorIsMod_ && (
|
||||||
<span className="mx-1 badge text-bg-light">
|
<span className="mx-1 badge text-bg-light">
|
||||||
{I18NextService.i18n.t("mod")}
|
{I18NextService.i18n.t("mod")}
|
||||||
|
@ -417,7 +421,10 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<>
|
<>
|
||||||
{" "}
|
{" "}
|
||||||
{I18NextService.i18n.t("to")}{" "}
|
{I18NextService.i18n.t("to")}{" "}
|
||||||
<CommunityLink community={post_view.community} />
|
<CommunityLink
|
||||||
|
community={post_view.community}
|
||||||
|
hideAvatar={this.props.hideAvatars}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{post_view.post.language_id !== 0 && (
|
{post_view.post.language_id !== 0 && (
|
||||||
|
|
|
@ -76,6 +76,7 @@ export class PostListings extends Component<PostListingsProps, any> {
|
||||||
showCommunity={this.props.showCommunity}
|
showCommunity={this.props.showCommunity}
|
||||||
enableDownvotes={this.props.enableDownvotes}
|
enableDownvotes={this.props.enableDownvotes}
|
||||||
enableNsfw={this.props.enableNsfw}
|
enableNsfw={this.props.enableNsfw}
|
||||||
|
hideAvatars={true}
|
||||||
viewOnly={this.props.viewOnly}
|
viewOnly={this.props.viewOnly}
|
||||||
allLanguages={this.props.allLanguages}
|
allLanguages={this.props.allLanguages}
|
||||||
siteLanguages={this.props.siteLanguages}
|
siteLanguages={this.props.siteLanguages}
|
||||||
|
|
Loading…
Reference in a new issue