mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 14:33:39 +08:00
4c1c25027d
This commit continues work laid out by ffec8163b0
for the admin config page for the /about page. The last commit set up the user interface, and this one sets up all the wiring needed to make the input fields and save buttons actually work.
Internal topic: t/128544.
26 lines
633 B
JavaScript
26 lines
633 B
JavaScript
import Route from "@ember/routing/route";
|
|
import { ajax } from "discourse/lib/ajax";
|
|
|
|
export default class AdminConfigAboutRoute extends Route {
|
|
model() {
|
|
return ajax("/admin/site_settings.json", {
|
|
data: {
|
|
filter_names: [
|
|
"title",
|
|
"site_description",
|
|
"extended_site_description",
|
|
"about_banner_image",
|
|
"community_owner",
|
|
"contact_email",
|
|
"contact_url",
|
|
"site_contact_username",
|
|
"site_contact_group_name",
|
|
"company_name",
|
|
"governing_law",
|
|
"city_for_disputes",
|
|
],
|
|
},
|
|
});
|
|
}
|
|
}
|