Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ui/src/views/compute/DeployVM.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ export default {
this.vm.hostname = host.name
}

if (this.serviceOffering.rootdisksize) {
if (this.serviceOffering?.rootdisksize) {
this.vm.disksizetotalgb = this.serviceOffering.rootdisksize
} else if (this.diskSize) {
this.vm.disksizetotalgb = this.diskSize
Expand Down Expand Up @@ -2097,6 +2097,7 @@ export default {
this.updateComputeOffering(null)
},
updateTemplateConfigurationOfferingDetails (offeringId) {
this.rootDiskSizeFixed = 0
var offering = this.serviceOffering
if (!offering || offering.id !== offeringId) {
offering = _.find(this.options.serviceOfferings, (option) => option.id === offeringId)
Expand Down
6 changes: 5 additions & 1 deletion ui/tests/unit/views/AutogenView.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ mocks = {
return option
}),
info: jest.fn((option) => {
return option
return {
message: option.message,
description: 'test-description',
duration: option.duration
}
}),
success: jest.fn((option) => {
return option
Expand Down