mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
Clean up PostsUserPage placeholder
This commit is contained in:
parent
b9afcbe50d
commit
31b5b4afac
|
@ -44,6 +44,14 @@ export default class PostsUserPage extends UserPage {
|
|||
}
|
||||
|
||||
content() {
|
||||
if (this.posts.length === 0 && ! this.loading) {
|
||||
return (
|
||||
<div className="PostsUserPage">
|
||||
<Placeholder text={app.translator.trans('core.forum.user.posts_empty_text')} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
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 (
|
||||
<div className="PostsUserPage">
|
||||
{Placeholder.component({text})}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="PostsUserPage">
|
||||
<ul className="PostsUserPage-list">
|
||||
|
|
Loading…
Reference in New Issue
Block a user