diff --git a/app/assets/javascripts/discourse/app/controllers/discovery/topics.js b/app/assets/javascripts/discourse/app/controllers/discovery/topics.js index dcb874d7295..a87580e1f05 100644 --- a/app/assets/javascripts/discourse/app/controllers/discovery/topics.js +++ b/app/assets/javascripts/discourse/app/controllers/discovery/topics.js @@ -204,4 +204,12 @@ export default class TopicsController extends DiscoveryController.extend( ), }); } + + get renderNewListHeaderControls() { + return ( + this.site.mobileView && + this.get("showTopicsAndRepliesToggle") && + !this.get("bulkSelectEnabled") + ); + } } diff --git a/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs b/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs index e0c14f2ad24..84d60370722 100644 --- a/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs +++ b/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs @@ -62,6 +62,16 @@ {{/if}} {{/if}} + + {{#if this.renderNewListHeaderControls}} + + {{/if}} + - - - {{#if this.top}} -
- -
- {{else}} - {{#if this.topicTrackingState.hasIncoming}} - - - - {{/if}} - {{/if}} - {{#unless this.bulkSelectEnabled}} - {{#if this.showTopicsAndRepliesToggle}} - - {{/if}} - {{/unless}} - {{#if this.hasTopics}} - - {{/if}} -
- - \ No newline at end of file