mirror of https://github.com/rancher/ui.git
Hide removed machine drivers
This commit is contained in:
parent
b3259c73b2
commit
4ee333d6fd
|
|
@ -136,8 +136,8 @@ export default Ember.Controller.extend({
|
|||
|
||||
let model = this.get('model');
|
||||
model.setProperties({
|
||||
'clientId': model.get('clientId').trim(),
|
||||
'clientSecret': model.get('clientSecret').trim(),
|
||||
'clientId': (model.get('clientId')||'').trim(),
|
||||
'clientSecret': (model.get('clientSecret')||'').trim(),
|
||||
'enabled': false, // It should already be, but just in case..
|
||||
'accessMode': 'unrestricted',
|
||||
'allowedIdentities': [],
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ import FilterState from 'ui/mixins/filter-state';
|
|||
export default Ember.Component.extend(FilterState, Sortable, {
|
||||
drivers : null,
|
||||
settings : Ember.inject.service(),
|
||||
sortableContent : Ember.computed.alias('drivers'),
|
||||
filterableContent : Ember.computed.alias('drivers'),
|
||||
sortableContent : Ember.computed.alias('filtered'),
|
||||
sortBy : 'name',
|
||||
|
||||
classNames : ['machine-drivers'],
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@
|
|||
</td>
|
||||
|
||||
<td>
|
||||
<div class="clip with-zeroclip">
|
||||
<div class="clip">
|
||||
{{model.displayUri}}
|
||||
{{copy-to-clipboard clipboardText=model.displayUri class="with-clip" size="small"}}
|
||||
</div>
|
||||
{{copy-to-clipboard clipboardText=model.displayUri class="with-clip"}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ export default Ember.ArrayProxy.extend({
|
|||
_boundFn: null,
|
||||
|
||||
init() {
|
||||
this._super();
|
||||
|
||||
if ( !this.get('sortProperties') )
|
||||
{
|
||||
this.set('sortProperties', ['displayName','name','id']);
|
||||
|
|
@ -31,7 +29,8 @@ export default Ember.ArrayProxy.extend({
|
|||
});
|
||||
|
||||
this.set('_boundFn', this.get('filterFn').bind(this));
|
||||
this.sourceContentChanged();
|
||||
this.updateContent();
|
||||
this._super();
|
||||
},
|
||||
|
||||
sourceContentChanged() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue