diff --git a/framework/core/js/forum/src/components/DiscussionList.js b/framework/core/js/forum/src/components/DiscussionList.js index bbb52e0e0..e645185be 100644 --- a/framework/core/js/forum/src/components/DiscussionList.js +++ b/framework/core/js/forum/src/components/DiscussionList.js @@ -2,6 +2,7 @@ import Component from 'flarum/Component'; import DiscussionListItem from 'flarum/components/DiscussionListItem'; import Button from 'flarum/components/Button'; import LoadingIndicator from 'flarum/components/LoadingIndicator'; +import Placeholder from 'flarum/components/Placeholder'; /** * The `DiscussionList` component displays a list of discussions. @@ -53,6 +54,15 @@ export default class DiscussionList extends Component { }); } + if (this.discussions.length == 0) { + const text = 'Looks like there are no discussions here. Why don\'t you create a new one?'; + return ( +
+ {Placeholder.component({text})} +
+ ); + } + return (