UI changes

This commit is contained in:
Harikrishna Patnala 2021-02-01 11:43:06 +05:30
parent d28cb789d5
commit 536ea98bca
2 changed files with 24 additions and 2 deletions

View File

@ -509,6 +509,15 @@
v-decorator="['bootintosetup']">
</a-switch>
</a-form-item>
<a-form-item>
<span slot="label">
{{ $t('label.isdynamicallyscalable') }}
<a-tooltip :title="$t('label.isdynamicallyscalable')">
<a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
</a-tooltip>
</span>
<a-switch v-decorator="['dynamicscalingenabled', {initialValue: dynamicscalingenabled}]" :checked="dynamicscalingenabled" @change="val => { dynamicscalingenabled = val }"/>
</a-form-item>
<a-form-item :label="$t('label.userdata')">
<a-textarea
v-decorator="['userdata']">
@ -675,6 +684,7 @@ export default {
clusterId: null,
zoneSelected: false,
startvm: true,
dynamicscalingenabled: true,
vm: {
name: null,
zoneid: null,
@ -1416,6 +1426,7 @@ export default {
deployVmData.keyboard = values.keyboard
deployVmData.boottype = values.boottype
deployVmData.bootmode = values.bootmode
deployVmData.dynamicscalingenabled = values.dynamicscalingenabled
if (values.userdata && values.userdata.length > 0) {
deployVmData.userdata = encodeURIComponent(btoa(this.sanitizeReverse(values.userdata)))
}

View File

@ -532,6 +532,15 @@
</span>
<a-switch v-decorator="['offerha', {initialValue: false}]" />
</a-form-item>
<a-form-item>
<span slot="label">
{{ $t('label.isdynamicallyscalable') }}
<a-tooltip :title="apiParams.dynamicscalingenabled.description">
<a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
</a-tooltip>
</span>
<a-switch v-decorator="['dynamicscalingenabled', {initialValue: dynamicscalingenabled}]" :checked="dynamicscalingenabled" @change="val => { dynamicscalingenabled = val }"/>
</a-form-item>
<a-form-item v-if="this.isAdmin()">
<span slot="label">
{{ $t('label.hosttags') }}
@ -797,7 +806,8 @@ export default {
],
vGpuVisible: false,
vGpuTypes: [],
loading: false
loading: false,
dynamicscalingenabled: true
}
},
beforeCreate () {
@ -959,7 +969,8 @@ export default {
cachemode: values.cachemode,
customized: values.offeringtype !== 'fixed',
offerha: values.offerha === true,
limitcpuuse: values.limitcpuuse === true
limitcpuuse: values.limitcpuuse === true,
dynamicscalingenabled: values.dynamicscalingenabled
}
// custom fields (begin)