From: Dessalines Date: Tue, 13 Oct 2020 20:12:40 +0000 (-0500) Subject: Fix post listing mod actions. Fixes #58 X-Git-Url: http://these/git/?a=commitdiff_plain;h=52b5d32fde1501ebba0374707cdc085d558c2ef7;p=lemmy-ui.git Fix post listing mod actions. Fixes #58 --- diff --git a/src/shared/components/post-listing.tsx b/src/shared/components/post-listing.tsx index 7cc213b..52c40d4 100644 --- a/src/shared/components/post-listing.tsx +++ b/src/shared/components/post-listing.tsx @@ -749,53 +749,53 @@ export class PostListing extends Component { {/* Mods can ban from community, and appoint as mods to community */} {(this.canMod || this.canAdmin) && (!post.removed ? ( - {i18n.t('remove')} - + ) : ( - {i18n.t('restore')} - + ))} {this.canMod && ( <> {!this.isMod && (!post.banned_from_community ? ( - {i18n.t('ban')} - + ) : ( - {i18n.t('unban')} - + ))} {!post.banned_from_community && post.creator_local && ( - {this.isMod ? i18n.t('remove_as_mod') : i18n.t('appoint_as_mod')} - + )} )} @@ -804,35 +804,35 @@ export class PostListing extends Component { this.isMod && post.creator_local && (!this.state.showConfirmTransferCommunity ? ( - {i18n.t('transfer_community')} - + ) : ( <> - + ))} {/* Admins can ban from all, and appoint other admins */} @@ -840,29 +840,29 @@ export class PostListing extends Component { <> {!this.isAdmin && (!post.banned ? ( - {i18n.t('ban_from_site')} - + ) : ( - {i18n.t('unban_from_site')} - + ))} {!post.banned && post.creator_local && ( - {this.isAdmin ? i18n.t('remove_as_admin') : i18n.t('appoint_as_admin')} - + )} )} @@ -870,35 +870,35 @@ export class PostListing extends Component { {this.amSiteCreator && this.isAdmin && (!this.state.showConfirmTransferSite ? ( - {i18n.t('transfer_site')} - + ) : ( <> - + ))}