Add helper to detect when any flexible shape is selected.

This commit is contained in:
jesse.millan 2021-05-26 11:39:21 -07:00
parent 32e6b2a095
commit e689d9a0dc
No known key found for this signature in database
GPG Key ID: 9DD407A06EAC48A6
2 changed files with 4 additions and 1 deletions

View File

@ -305,6 +305,9 @@ export default Component.extend(ClusterDriver, {
canCreateCluster: computed('config.nodeShape', 'config.nodeImage', function() {
return !(get(this, 'config.nodeShape') && get(this, 'config.nodeImage'));
}),
isFlex: computed('config.nodeShape', function() {
return (get(this, 'config.nodeShape').includes('Flex'));
}),
// Add custom validation beyond what can be done from the config API schema
validate() {

View File

@ -409,7 +409,7 @@
<div>{{config.nodeShape}}</div>
{{/if}}
</div>
{{#if (eq config.nodeShape "VM.Standard.E3.Flex")}}
{{#if isFlex}}
<div class="col span-4">
<label class="acc-label" for="input-ocpu-count">
{{t "clusterNew.oracleoke.flexShapeConfig.label"}}