FIX: restore "categories and top topics" layout (#24275)
This commit is contained in:
parent
a1c1f7ce75
commit
f3d5cca3f2
|
@ -1,6 +1,7 @@
|
||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
import { inject as service } from "@ember/service";
|
import { inject as service } from "@ember/service";
|
||||||
import CategoriesAndLatestTopics from "discourse/components/categories-and-latest-topics";
|
import CategoriesAndLatestTopics from "discourse/components/categories-and-latest-topics";
|
||||||
|
import CategoriesAndTopTopics from "discourse/components/categories-and-top-topics";
|
||||||
import CategoriesBoxes from "discourse/components/categories-boxes";
|
import CategoriesBoxes from "discourse/components/categories-boxes";
|
||||||
import CategoriesBoxesWithTopics from "discourse/components/categories-boxes-with-topics";
|
import CategoriesBoxesWithTopics from "discourse/components/categories-boxes-with-topics";
|
||||||
import CategoriesOnly from "discourse/components/categories-only";
|
import CategoriesOnly from "discourse/components/categories-only";
|
||||||
|
@ -22,6 +23,7 @@ const subcategoryComponents = {
|
||||||
const globalComponents = {
|
const globalComponents = {
|
||||||
categories_and_latest_topics_created_date: CategoriesAndLatestTopics,
|
categories_and_latest_topics_created_date: CategoriesAndLatestTopics,
|
||||||
categories_and_latest_topics: CategoriesAndLatestTopics,
|
categories_and_latest_topics: CategoriesAndLatestTopics,
|
||||||
|
categories_and_top_topics: CategoriesAndTopTopics,
|
||||||
categories_boxes_with_topics: CategoriesBoxesWithTopics,
|
categories_boxes_with_topics: CategoriesBoxesWithTopics,
|
||||||
categories_boxes: CategoriesBoxes,
|
categories_boxes: CategoriesBoxes,
|
||||||
categories_only: CategoriesOnly,
|
categories_only: CategoriesOnly,
|
||||||
|
@ -53,7 +55,6 @@ export default class CategoriesDisplay extends Component {
|
||||||
style = mobileCompatibleViews[0];
|
style = mobileCompatibleViews[0];
|
||||||
}
|
}
|
||||||
const component = globalComponents[style];
|
const component = globalComponents[style];
|
||||||
|
|
||||||
if (!component) {
|
if (!component) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error("Unknown category list style: " + style);
|
console.error("Unknown category list style: " + style);
|
||||||
|
|
Loading…
Reference in New Issue