mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 18:57:40 +08:00

This commit adds a new "Community title" field to the about config page. This field controls the `short_site_description` setting, which is shown in the browser tab for key pages such categories pages and topic lists. Internal topic: t/140812.
27 lines
676 B
JavaScript
27 lines
676 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_names: [
|
|
"title",
|
|
"site_description",
|
|
"extended_site_description",
|
|
"short_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",
|
|
],
|
|
},
|
|
});
|
|
}
|
|
}
|