discourse/app/assets/javascripts/admin/addon/routes/admin-user-fields.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
358 B
JavaScript
Raw Normal View History

import DiscourseRoute from "discourse/routes/discourse";
import UserField from "admin/models/user-field";
export default class AdminUserFieldsRoute extends DiscourseRoute {
model() {
2015-07-30 14:52:53 -04:00
return this.store.findAll("user-field");
}
setupController(controller, model) {
2015-07-30 14:52:53 -04:00
controller.setProperties({ model, fieldTypes: UserField.fieldTypes() });
}
}