mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
UI: fix scale vm if first disk offering is dymamic (#8213)
This commit is contained in:
parent
d0f3233fda
commit
b79e3937b4
@ -221,16 +221,19 @@ export default {
|
||||
|
||||
this.params.serviceofferingid = id
|
||||
this.selectedOffering = this.offeringsMap[id]
|
||||
api('listDiskOfferings', {
|
||||
id: this.selectedOffering.diskofferingid
|
||||
}).then(response => {
|
||||
const diskOfferings = response.listdiskofferingsresponse.diskoffering || []
|
||||
if (this.offerings) {
|
||||
this.selectedDiskOffering = diskOfferings[0]
|
||||
}
|
||||
}).catch(error => {
|
||||
this.$notifyError(error)
|
||||
})
|
||||
this.selectedDiskOffering = null
|
||||
if (this.selectedOffering.diskofferingid) {
|
||||
api('listDiskOfferings', {
|
||||
id: this.selectedOffering.diskofferingid
|
||||
}).then(response => {
|
||||
const diskOfferings = response.listdiskofferingsresponse.diskoffering || []
|
||||
if (this.diskOfferings) {
|
||||
this.selectedDiskOffering = diskOfferings[0]
|
||||
}
|
||||
}).catch(error => {
|
||||
this.$notifyError(error)
|
||||
})
|
||||
}
|
||||
this.params.automigrate = this.autoMigrate
|
||||
},
|
||||
updateFieldValue (name, value) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user