2019-10-22 09:46:10 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2014-09-25 11:32:08 -04:00
|
|
|
import UserField from "admin/models/user-field";
|
|
|
|
|
2019-10-22 09:46:10 -04:00
|
|
|
export default DiscourseRoute.extend({
|
2014-09-25 11:32:08 -04:00
|
|
|
model: function() {
|
2015-07-30 14:52:53 -04:00
|
|
|
return this.store.findAll("user-field");
|
2014-09-25 11:32:08 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController: function(controller, model) {
|
2015-07-30 14:52:53 -04:00
|
|
|
controller.setProperties({ model, fieldTypes: UserField.fieldTypes() });
|
2014-09-25 11:32:08 -04:00
|
|
|
}
|
|
|
|
});
|