categories page on mobile uses categories with featured topics

This commit is contained in:
Neil Lalonde 2017-03-27 13:55:21 -04:00
parent 6e847bb297
commit 249eedd45c
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export default DiscoveryController.extend({
@computed("model.parentCategory") @computed("model.parentCategory")
categoryPageStyle(parentCategory) { categoryPageStyle(parentCategory) {
let style = this.siteSettings.desktop_category_page_style; let style = this.site.mobileView ? 'categories_with_featured_topics' : this.siteSettings.desktop_category_page_style;
if (parentCategory) { if (parentCategory) {
style = subcategoryStyleComponentNames[parentCategory.get('subcategory_list_style')] || style; style = subcategoryStyleComponentNames[parentCategory.get('subcategory_list_style')] || style;