mirror of https://github.com/rancher/ui.git
33 lines
630 B
JavaScript
33 lines
630 B
JavaScript
import Ember from 'ember';
|
|
import Driver from 'ui/mixins/driver';
|
|
|
|
let isOptimized=[
|
|
{
|
|
value : "none",
|
|
},
|
|
{
|
|
value: "optimized",
|
|
},
|
|
];
|
|
|
|
export default Ember.Component.extend(Driver, {
|
|
driverName : 'aliyunecs',
|
|
aliyunecsConfig : Ember.computed.alias('model.aliyunecsConfig'),
|
|
isOptimized : isOptimized,
|
|
|
|
|
|
bootstrap: function() {
|
|
let config = this.get('store').createRecord({
|
|
type : 'aliyunecsConfig',
|
|
});
|
|
|
|
this.set('model', this.get('store').createRecord({
|
|
type: 'host',
|
|
aliyunecsConfig: config,
|
|
}));
|
|
|
|
//this.set('editing', false);
|
|
},
|
|
|
|
});
|