mirror of https://github.com/rancher/ui.git
30 lines
695 B
JavaScript
30 lines
695 B
JavaScript
import { alias } from '@ember/object/computed';
|
|
import Component from '@ember/component';
|
|
import Driver from 'shared/mixins/host-driver';
|
|
import layout from './template';
|
|
|
|
export default Component.extend(Driver, {
|
|
layout,
|
|
errors: null,
|
|
host: null,
|
|
clonedModel: null,
|
|
primaryResource: alias('clonedModel'),
|
|
hostOptions: null,
|
|
labelResource: alias('primaryResource'),
|
|
|
|
didReceiveAttrs() {
|
|
this._super(...arguments);
|
|
|
|
this.setProperties({
|
|
hostOptions: this.get(`hostTemplate.publicValues.${this.get('hostTemplate.driver')}Config`),
|
|
clonedModel: this.get('host').clone(),
|
|
});
|
|
|
|
},
|
|
|
|
actions: {
|
|
saveTemp() {
|
|
},
|
|
},
|
|
});
|