mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 03:03:44 +08:00
ae721bd0f1
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.
13 lines
278 B
JavaScript
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",
|
|
},
|
|
});
|
|
}
|
|
}
|