mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 09:54:56 +08:00
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.
12 lines
278 B
JavaScript
Vendored
12 lines
278 B
JavaScript
Vendored
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",
|
|
},
|
|
});
|
|
}
|
|
}
|