2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FEATURE: Custom orders for user fields

This commit is contained in:
Robin Ward 2015-07-30 14:52:53 -04:00
parent 8e603503e6
commit aa6f792ce1
16 changed files with 126 additions and 83 deletions

View file

@ -2,13 +2,10 @@ import UserField from 'admin/models/user-field';
export default Discourse.Route.extend({
model: function() {
return UserField.findAll();
return this.store.findAll('user-field');
},
setupController: function(controller, model) {
controller.setProperties({
model: model,
fieldTypes: UserField.fieldTypes()
});
controller.setProperties({ model, fieldTypes: UserField.fieldTypes() });
}
});