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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
353 B
Plaintext
Raw Normal View History

import DiscourseRoute from "discourse/routes/discourse";
import UserField from "admin/models/user-field";
export default DiscourseRoute.extend({
model: function() {
2015-07-31 02:52:53 +08:00
return this.store.findAll("user-field");
},
setupController: function(controller, model) {
2015-07-31 02:52:53 +08:00
controller.setProperties({ model, fieldTypes: UserField.fieldTypes() });
}
});