Skip to content

Commit 4a65590

Browse files
UI changes
1 parent b60de9c commit 4a65590

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

ui/src/views/compute/DeployVM.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,15 @@
501501
v-decorator="['bootintosetup']">
502502
</a-switch>
503503
</a-form-item>
504+
<a-form-item>
505+
<span slot="label">
506+
{{ $t('label.isdynamicallyscalable') }}
507+
<a-tooltip :title="$t('label.isdynamicallyscalable')">
508+
<a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
509+
</a-tooltip>
510+
</span>
511+
<a-switch v-decorator="['dynamicscalingenabled', {initialValue: dynamicscalingenabled}]" :checked="dynamicscalingenabled" @change="val => { dynamicscalingenabled = val }"/>
512+
</a-form-item>
504513
<a-form-item :label="$t('label.userdata')">
505514
<a-textarea
506515
v-decorator="['userdata']">
@@ -663,6 +672,7 @@ export default {
663672
podId: null,
664673
clusterId: null,
665674
zoneSelected: false,
675+
dynamicscalingenabled: true,
666676
vm: {
667677
name: null,
668678
zoneid: null,
@@ -1404,6 +1414,7 @@ export default {
14041414
deployVmData.keyboard = values.keyboard
14051415
deployVmData.boottype = values.boottype
14061416
deployVmData.bootmode = values.bootmode
1417+
deployVmData.dynamicscalingenabled = values.dynamicscalingenabled
14071418
if (values.userdata && values.userdata.length > 0) {
14081419
deployVmData.userdata = encodeURIComponent(btoa(this.sanitizeReverse(values.userdata)))
14091420
}

ui/src/views/offering/AddComputeOffering.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,15 @@
531531
</span>
532532
<a-switch v-decorator="['offerha', {initialValue: false}]" />
533533
</a-form-item>
534+
<a-form-item>
535+
<span slot="label">
536+
{{ $t('label.isdynamicallyscalable') }}
537+
<a-tooltip :title="apiParams.dynamicscalingenabled.description">
538+
<a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
539+
</a-tooltip>
540+
</span>
541+
<a-switch v-decorator="['dynamicscalingenabled', {initialValue: dynamicscalingenabled}]" :checked="dynamicscalingenabled" @change="val => { dynamicscalingenabled = val }"/>
542+
</a-form-item>
534543
<a-form-item v-if="this.isAdmin()">
535544
<span slot="label">
536545
{{ $t('label.hosttags') }}
@@ -796,7 +805,8 @@ export default {
796805
],
797806
vGpuVisible: false,
798807
vGpuTypes: [],
799-
loading: false
808+
loading: false,
809+
dynamicscalingenabled: true
800810
}
801811
},
802812
beforeCreate () {
@@ -960,7 +970,8 @@ export default {
960970
cachemode: values.cachemode,
961971
customized: values.offeringtype !== 'fixed',
962972
offerha: values.offerha === true,
963-
limitcpuuse: values.limitcpuuse === true
973+
limitcpuuse: values.limitcpuuse === true,
974+
dynamicscalingenabled: values.dynamicscalingenabled
964975
}
965976
966977
// custom fields (begin)

0 commit comments

Comments
 (0)