display node role name on eks edit/view

This commit is contained in:
Nancy Butler 2023-02-07 12:55:45 -07:00
parent d1bf01db9d
commit bdd8828b8c
2 changed files with 10 additions and 1 deletions

View File

@ -499,6 +499,15 @@ export default Component.extend({
}, ...nodeInstanceRoles]
}),
selectedNodeRoleName: computed('model.nodeRole', 'nodeInstanceRoles.[]', function(){
const { nodeInstanceRoles } = this;
const { nodeRole } = this.model
const selected = nodeInstanceRoles.findBy('Arn', nodeRole )
return selected ? selected.RoleName : null
} ),
async loadTemplateVersionInfo() {
if (!this.clusterSaving && !this.clusterSaved) {
const { launchTemplate = {} } = this.model;

View File

@ -23,7 +23,7 @@
</label>
{{#input-or-display
editable=creating
value=nodeRole
value=selectedNodeRoleName
}}
<NewSelect
class="form-control"