mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:26:35 +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()
|
|
});
|
|
}
|
|
});
|