fix user sorting on users page

rancher/rancher#11057
This commit is contained in:
Westly Wright 2018-01-29 11:30:00 -07:00
parent f92be1a6da
commit d2d012d76e
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
1 changed files with 2 additions and 7 deletions

View File

@ -1,10 +1,10 @@
import { get, computed, set } from '@ember/object';
import { computed } from '@ember/object';
import { inject as service } from '@ember/service';
import Controller from '@ember/controller';
export default Controller.extend({
access: service(),
sortBy: null,
sortBy: 'username',
headers: computed('isLocal', function() {
let out = [
{
@ -26,11 +26,6 @@ export default Controller.extend({
return out;
}),
init() {
this._super(...arguments);
set(this, 'sortBy', get(this, 'isLocal') ? 'username' : 'name');
},
isLocal: computed('access.provider', function() {
return true; // TODO 2.0
// return this.get('access.provider') === 'localauthconfig';