diff --git a/app/assets/javascripts/discourse/app/controllers/discovery/categories.js b/app/assets/javascripts/discourse/app/controllers/discovery/categories.js index a80ce60bcfc..c46f41c1c82 100644 --- a/app/assets/javascripts/discourse/app/controllers/discovery/categories.js +++ b/app/assets/javascripts/discourse/app/controllers/discovery/categories.js @@ -23,6 +23,10 @@ export default DiscoveryController.extend({ category: null, canEdit: reads("currentUser.staff"), + @discourseComputed + isCategoriesRoute() { + return this.router.currentRouteName === "discovery.categories"; + }, @discourseComputed("model.parentCategory") categoryPageStyle(parentCategory) { let style = this.siteSettings.desktop_category_page_style; diff --git a/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs b/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs index a9cde049366..4187cda09d5 100644 --- a/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs +++ b/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs @@ -1,7 +1,7 @@ - {{#if this.topicTrackingState.hasIncoming}} + {{#if (and this.topicTrackingState.hasIncoming this.isCategoriesRoute)}}