From 52b5d32fde1501ebba0374707cdc085d558c2ef7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 13 Oct 2020 15:12:40 -0500 Subject: [PATCH] Fix post listing mod actions. Fixes #58 --- src/shared/components/post-listing.tsx | 92 +++++++++++++------------- 1 file changed, 46 insertions(+), 46 deletions(-) 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')} - + ) : ( <> - + ))} -- 2.44.1