2019-10-22 09:46:10 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2018-06-15 11:03:24 -04:00
|
|
|
import UserField from "admin/models/user-field";
|
2014-09-25 11:32:08 -04:00
|
|
|
|
2019-10-22 09:46:10 -04:00
|
|
|
export default DiscourseRoute.extend({
|
2014-09-25 11:32:08 -04:00
|
|
|
model: function() {
|
2018-06-15 11:03:24 -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
|
|
|
}
|
|
|
|
});
|