summaryrefslogtreecommitdiffstats
path: root/ui/src/components/post.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-01-19 16:47:54 -0500
committerDessalines <tyhou13@gmx.com>2020-01-19 16:47:54 -0500
commitac7a4031a809bac9ba958319ad678ea70df8618a (patch)
treef9cacf1123838132e316322034fb51c1665d7db8 /ui/src/components/post.tsx
parent96c1fceb99f99fbda2464664171ee899e48e03c4 (diff)
Hide next paginator.
- Fixes #441 - Hide post sort radio if no comments.
Diffstat (limited to 'ui/src/components/post.tsx')
-rw-r--r--ui/src/components/post.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx
index d4869386..c4bfccee 100644
--- a/ui/src/components/post.tsx
+++ b/ui/src/components/post.tsx
@@ -178,7 +178,7 @@ export class Post extends Component<any, PostState> {
postId={this.state.post.id}
disabled={this.state.post.locked}
/>
- {this.sortRadios()}
+ {this.state.comments.length > 0 && this.sortRadios()}
{this.commentsTree()}
</div>
<div class="col-12 col-sm-12 col-md-4">