mirror of https://github.com/rancher/ui.git
Fix custom driver not showing up correctly
This commit is contained in:
parent
4353574ae5
commit
0097e13498
|
|
@ -36,18 +36,6 @@ export default Ember.Component.extend({
|
|||
},
|
||||
},
|
||||
|
||||
driverComponent: Ember.computed('driver', function() {
|
||||
var driverName = 'other';
|
||||
var driverComponent = 'machine/driver';
|
||||
|
||||
if (this.get('driverObj.hasUi')) {
|
||||
driverComponent = `${driverComponent}-${this.get('driver')}`;
|
||||
} else {
|
||||
driverComponent = `${driverComponent}-${driverName}`;
|
||||
}
|
||||
return driverComponent;
|
||||
}),
|
||||
|
||||
driverObj: Ember.computed('driver', function() {
|
||||
return this.get('model.availableDrivers').filterBy('name', this.get('driver'))[0];
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
</section>
|
||||
|
||||
{{#if driver}}
|
||||
{{component driverComponent
|
||||
{{component (concat 'machine/driver-' driver)
|
||||
cancel=(route-action 'cancel')
|
||||
clonedModel=model.clonedModel
|
||||
driver=(concat driver 'Config')
|
||||
|
|
|
|||
Loading…
Reference in New Issue