mirror of
https://github.com/flarum/framework.git
synced 2024-12-03 15:43:59 +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() {
|
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;
|
let footer;
|
||||||
|
|
||||||
if (this.loading) {
|
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 (
|
return (
|
||||||
<div className="PostsUserPage">
|
<div className="PostsUserPage">
|
||||||
<ul className="PostsUserPage-list">
|
<ul className="PostsUserPage-list">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user