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.params.serviceofferingid = id
|
||||||
this.selectedOffering = this.offeringsMap[id]
|
this.selectedOffering = this.offeringsMap[id]
|
||||||
api('listDiskOfferings', {
|
this.selectedDiskOffering = null
|
||||||
id: this.selectedOffering.diskofferingid
|
if (this.selectedOffering.diskofferingid) {
|
||||||
}).then(response => {
|
api('listDiskOfferings', {
|
||||||
const diskOfferings = response.listdiskofferingsresponse.diskoffering || []
|
id: this.selectedOffering.diskofferingid
|
||||||
if (this.offerings) {
|
}).then(response => {
|
||||||
this.selectedDiskOffering = diskOfferings[0]
|
const diskOfferings = response.listdiskofferingsresponse.diskoffering || []
|
||||||
}
|
if (this.diskOfferings) {
|
||||||
}).catch(error => {
|
this.selectedDiskOffering = diskOfferings[0]
|
||||||
this.$notifyError(error)
|
}
|
||||||
})
|
}).catch(error => {
|
||||||
|
this.$notifyError(error)
|
||||||
|
})
|
||||||
|
}
|
||||||
this.params.automigrate = this.autoMigrate
|
this.params.automigrate = this.autoMigrate
|
||||||
},
|
},
|
||||||
updateFieldValue (name, value) {
|
updateFieldValue (name, value) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user