mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge release branch 4.18 to main
* 4.18: UI: Infer template settings in the deploy VM wizard (#7867)
This commit is contained in:
commit
f563c165cb
@ -1815,11 +1815,17 @@ export default {
|
||||
if (template) {
|
||||
var size = template.size / (1024 * 1024 * 1024) || 0 // bytes to GB
|
||||
this.dataPreFill.minrootdisksize = Math.ceil(size)
|
||||
this.defaultBootType = this.template?.details?.UEFI ? 'UEFI' : ''
|
||||
this.fetchBootModes(this.defaultBootType)
|
||||
this.defaultBootMode = this.template?.details?.UEFI
|
||||
this.updateTemplateLinkedUserData(this.template.userdataid)
|
||||
this.userdataDefaultOverridePolicy = this.template.userdatapolicy
|
||||
this.updateTemplateLinkedUserData(template.userdataid)
|
||||
this.userdataDefaultOverridePolicy = template.userdatapolicy
|
||||
this.form.dynamicscalingenabled = template.isdynamicallyscalable
|
||||
this.defaultBootType = template.details?.UEFI ? 'UEFI' : 'BIOS'
|
||||
this.form.boottype = this.defaultBootType
|
||||
this.fetchBootModes(this.form.boottype)
|
||||
this.defaultBootMode = template.details?.UEFI || this.options.bootModes?.[0]?.id || undefined
|
||||
this.form.bootmode = this.defaultBootMode
|
||||
this.form.iothreadsenabled = template.details && Object.prototype.hasOwnProperty.call(template.details, 'iothreads')
|
||||
this.form.iodriverpolicy = template.details?.['io.policy']
|
||||
this.form.keyboard = template.details?.keyboard
|
||||
}
|
||||
} else if (name === 'isoid') {
|
||||
this.templateConfigurations = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user