Add global setting value to the enable or disable the flag on UI
diff --git a/ui/src/views/compute/DeployVM.vue b/ui/src/views/compute/DeployVM.vue
index 0f61265..bccd928 100644
--- a/ui/src/views/compute/DeployVM.vue
+++ b/ui/src/views/compute/DeployVM.vue
@@ -726,7 +726,8 @@
groups: [],
keyboards: [],
bootTypes: [],
- bootModes: []
+ bootModes: [],
+ dynamicScalingVmConfig: false
},
rowCount: {},
loading: {
@@ -908,6 +909,13 @@
type: 'Routing'
},
field: 'hostid'
+ },
+ dynamicScalingVmConfig: {
+ list: 'listConfigurations',
+ options: {
+ zoneid: _.get(this.zone, 'id'),
+ name: 'enable.dynamic.scale.vm'
+ }
}
}
},
@@ -986,6 +994,9 @@
},
showSecurityGroupSection () {
return (this.networks.length > 0 && this.zone.securitygroupsenabled) || (this.zone && this.zone.networktype === 'Basic')
+ },
+ dynamicScalingVmConfigValue () {
+ return this.options.dynamicScalingVmConfig?.[0]?.value === 'true'
}
},
watch: {
@@ -1206,7 +1217,7 @@
})
},
isDynamicallyScalable () {
- return this.serviceOffering && this.serviceOffering.dynamicscalingenabled && this.template && this.template.isdynamicallyscalable
+ return this.serviceOffering && this.serviceOffering.dynamicscalingenabled && this.template && this.template.isdynamicallyscalable && this.dynamicScalingVmConfigValue
},
async fetchDataByZone (zoneId) {
this.fillValue('zoneid')