mirror of https://github.com/rancher/ui.git
parent
f92be1a6da
commit
d2d012d76e
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in New Issue