From 31b5b4afac5a286677101bcf40b3149e4206c35d Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 23 Sep 2018 10:12:12 +0930 Subject: [PATCH] Clean up PostsUserPage placeholder --- .../js/src/forum/components/PostsUserPage.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/framework/core/js/src/forum/components/PostsUserPage.js b/framework/core/js/src/forum/components/PostsUserPage.js index ce9577653..022e87144 100644 --- a/framework/core/js/src/forum/components/PostsUserPage.js +++ b/framework/core/js/src/forum/components/PostsUserPage.js @@ -44,6 +44,14 @@ export default class PostsUserPage extends UserPage { } content() { + if (this.posts.length === 0 && ! this.loading) { + return ( +
+ +
+ ); + } + let footer; if (this.loading) { @@ -60,15 +68,6 @@ export default class PostsUserPage extends UserPage { ); } - if (this.posts.length === 0 && !this.loading) { - const text = app.translator.trans('core.forum.user.posts_empty_text'); - return ( -
- {Placeholder.component({text})} -
- ); - } - return (