mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:04:11 +08:00
15 lines
307 B
JavaScript
15 lines
307 B
JavaScript
import UserField from 'admin/models/user-field';
|
|
|
|
export default Discourse.Route.extend({
|
|
model: function() {
|
|
return UserField.findAll();
|
|
},
|
|
|
|
setupController: function(controller, model) {
|
|
controller.setProperties({
|
|
model: model,
|
|
fieldTypes: UserField.fieldTypes()
|
|
});
|
|
}
|
|
});
|