discourse/app/assets/javascripts/admin/addon/routes/admin-config-about.js
Osama Sayegh ae721bd0f1
DEV: Fetch settings by area name instead of individual settings (#29604)
This commit switches the route for the about config page to retrieve the list of site settings that control the /about page by their area instead of their individual names.

Internal topic: t/136384.
2024-11-06 06:56:27 +03:00

13 lines
278 B
JavaScript

import Route from "@ember/routing/route";
import { ajax } from "discourse/lib/ajax";
export default class AdminConfigAboutRoute extends Route {
model() {
return ajax("/admin/config/site_settings.json", {
data: {
filter_area: "about",
},
});
}
}