mirror of
https://github.com/discourse/discourse.git
synced 2024-12-23 09:53:42 +08:00
88af23e1ca
This PR modernizes the user fields area of the admin UI. It is largely based on the work on the emoji section.
13 lines
317 B
JavaScript
13 lines
317 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
import { i18n } from "discourse-i18n";
|
|
|
|
export default class AdminUserFieldsEditRoute extends DiscourseRoute {
|
|
model(params) {
|
|
return this.store.find("user-field", params.id);
|
|
}
|
|
|
|
titleToken() {
|
|
return i18n("admin.user_fields.edit_header");
|
|
}
|
|
}
|