mirror of https://github.com/rancher/ui.git
14 lines
371 B
JavaScript
14 lines
371 B
JavaScript
import { computed } from '@ember/object';
|
|
import Component from '@ember/component';
|
|
import layout from './template';
|
|
|
|
export default Component.extend({
|
|
layout,
|
|
tagName: '',
|
|
hostTemplateChoices: computed('hostTemplates', function() {
|
|
return this.get('hostTemplates').map((tmpl) => {
|
|
return {label: tmpl.get('name'), value: tmpl.get('id')};
|
|
})
|
|
})
|
|
});
|