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

13 lines
353 B
Plaintext
Raw Normal View History

import DiscourseRoute from "discourse/routes/discourse";
2018-06-15 11:03:24 -04:00
import UserField from "admin/models/user-field";
export default DiscourseRoute.extend({
model: function() {
2018-06-15 11:03:24 -04:00
return this.store.findAll("user-field");
},
setupController: function(controller, model) {
2015-07-30 14:52:53 -04:00
controller.setProperties({ model, fieldTypes: UserField.fieldTypes() });
}
});