discourse/app/assets/javascripts/admin/addon/routes/admin-user-fields-edit.js
Ted Johansson 88af23e1ca
DEV: Modernize admin user fields (#29843)
This PR modernizes the user fields area of the admin UI. It is largely based on the work on the emoji section.
2024-11-25 11:54:43 +08:00

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");
}
}