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:
parent
8e603503e6
commit
aa6f792ce1
16 changed files with 126 additions and 83 deletions
|
@ -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() });
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue