mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Merge pull request #3393 from joeldrapper/sort-roles-dropdown
Fixed role sort order in the invite a new user drop down list
This commit is contained in:
commit
3cb2a03170
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ var InviteNewUserController = Ember.Controller.extend({
|
||||||
self = this;
|
self = this;
|
||||||
|
|
||||||
roles.promise = this.store.find('role', { permissions: 'assign' }).then(function (roles) {
|
roles.promise = this.store.find('role', { permissions: 'assign' }).then(function (roles) {
|
||||||
return roles.rejectBy('name', 'Owner').sortBy('name');
|
return roles.rejectBy('name', 'Owner').sortBy('id');
|
||||||
}).then(function (roles) {
|
}).then(function (roles) {
|
||||||
// After the promise containing the roles has been resolved and the array
|
// After the promise containing the roles has been resolved and the array
|
||||||
// has been sorted, explicitly set the selectedRole for the Ember.Select.
|
// has been sorted, explicitly set the selectedRole for the Ember.Select.
|
||||||
|
|
Loading…
Add table
Reference in a new issue