mirror of https://github.com/rancher/ui.git
Add helper to detect when any flexible shape is selected.
This commit is contained in:
parent
32e6b2a095
commit
e689d9a0dc
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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"}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue