mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
UI - Fix Locked "Override Root Disk Size" switch (#5843)
* Fix Locked "Override Root Disk Size" switch * fixes ut
This commit is contained in:
parent
0f926b5d68
commit
4916f3c90d
@ -1133,7 +1133,7 @@ export default {
|
|||||||
this.vm.hostname = host.name
|
this.vm.hostname = host.name
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.serviceOffering.rootdisksize) {
|
if (this.serviceOffering?.rootdisksize) {
|
||||||
this.vm.disksizetotalgb = this.serviceOffering.rootdisksize
|
this.vm.disksizetotalgb = this.serviceOffering.rootdisksize
|
||||||
} else if (this.diskSize) {
|
} else if (this.diskSize) {
|
||||||
this.vm.disksizetotalgb = this.diskSize
|
this.vm.disksizetotalgb = this.diskSize
|
||||||
@ -2097,6 +2097,7 @@ export default {
|
|||||||
this.updateComputeOffering(null)
|
this.updateComputeOffering(null)
|
||||||
},
|
},
|
||||||
updateTemplateConfigurationOfferingDetails (offeringId) {
|
updateTemplateConfigurationOfferingDetails (offeringId) {
|
||||||
|
this.rootDiskSizeFixed = 0
|
||||||
var offering = this.serviceOffering
|
var offering = this.serviceOffering
|
||||||
if (!offering || offering.id !== offeringId) {
|
if (!offering || offering.id !== offeringId) {
|
||||||
offering = _.find(this.options.serviceOfferings, (option) => option.id === offeringId)
|
offering = _.find(this.options.serviceOfferings, (option) => option.id === offeringId)
|
||||||
|
|||||||
@ -57,7 +57,11 @@ mocks = {
|
|||||||
return option
|
return option
|
||||||
}),
|
}),
|
||||||
info: jest.fn((option) => {
|
info: jest.fn((option) => {
|
||||||
return option
|
return {
|
||||||
|
message: option.message,
|
||||||
|
description: 'test-description',
|
||||||
|
duration: option.duration
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
success: jest.fn((option) => {
|
success: jest.fn((option) => {
|
||||||
return option
|
return option
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user