discourse/app/assets/javascripts/admin/addon/routes/admin-config-about.js
Martin Brennan c2282439b3
UX: Move first settings admin route to config page (#30510)
For consistency, we are updating all sidebar links that
point to an /admin/customize/site_settings URL to their
own config pages, in preparation for more focused config
pages in future. This will mitigate the issue we have now,
which is that every sidebar link you click showing a different
UI to admins.

This commit moves admin/config/login-and-authentication to
establish the pattern.
2025-01-02 09:13:37 +10:00

18 lines
428 B
JavaScript

import { ajax } from "discourse/lib/ajax";
import DiscourseRoute from "discourse/routes/discourse";
import { i18n } from "discourse-i18n";
export default class AdminConfigAboutRoute extends DiscourseRoute {
titleToken() {
return i18n("admin.community.sidebar_link.about_your_site");
}
model() {
return ajax("/admin/config/site_settings.json", {
data: {
filter_area: "about",
},
});
}
}