mirror of https://github.com/rancher/ui.git
17 lines
475 B
JavaScript
17 lines
475 B
JavaScript
import { computed } from '@ember/object';
|
|
import Service from 'ui/models/service';
|
|
|
|
var ScalingGroup = Service.extend({
|
|
type: 'scalingGroup',
|
|
displayEnvironmentVars: computed('launchConfig.environment', function() {
|
|
var envs = [];
|
|
var environment = this.get('launchConfig.environment')||{};
|
|
Object.keys(environment).forEach((key) => {
|
|
envs.pushObject({key: key, value: environment[key]})
|
|
});
|
|
return envs;
|
|
}),
|
|
});
|
|
|
|
export default ScalingGroup;
|