Skip to content

A platform for community discussion. Free, open, simple.

FIX: Add missing about group ordering option (#32931)

Ted Johanssonad85ba0a7750
diff --git a/app/assets/javascripts/discourse/app/components/about-page-extra-groups.gjs b/app/assets/javascripts/discourse/app/components/about-page-extra-groups.gjs
index 662445f1741..57dfdb476a0 100644
--- a/app/assets/javascripts/discourse/app/components/about-page-extra-groups.gjs
+++ b/app/assets/javascripts/discourse/app/components/about-page-extra-groups.gjs
@@ -40,6 +40,13 @@ export default class AboutPageExtraGroups extends Component {
this.siteSettings.about_page_extra_groups_order === "order of creation"
) {
groupsToFetch.sort((a, b) => a.id - b.id);
+ } else if (
+ this.siteSettings.about_page_extra_groups_order ===
+ "order of theme setting"
+ ) {
+ groupsToFetch.sort(
+ (a, b) => groupsSetting.indexOf(a.id) - groupsSetting.indexOf(b.id)
+ );
}
const groupPromises = groupsToFetch.map(async (group) => {
diff --git a/config/site_settings.yml b/config/site_settings.yml
index 40f495050fc..01ba3985aec 100644
--- a/config/site_settings.yml
+++ b/config/site_settings.yml
@@ -522,6 +522,7 @@ basic:
choices:
- "alphabetically"
- "order of creation"
+ - "order of theme setting"
area: "about"
about_page_extra_groups_show_description:
client: true