Fix UI issue 5777 Root disk size is not shown as 'Disk Size' on VM deployment. (#5796)

In the UI, when selecting a service offering that has a root disk enforced, stills show the root disk size of the template (or the custom size gave by the user). This PR fixes this issue, that thas been reported in #5777.
Fixes: #5777
This commit is contained in:
Gabriel Beims Bräscher 2021-12-30 06:51:11 -03:00 committed by GitHub
parent d13057ace5
commit 62089767f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1133,7 +1133,9 @@ export default {
this.vm.hostname = host.name
}
if (this.diskSize) {
if (this.serviceOffering.rootdisksize) {
this.vm.disksizetotalgb = this.serviceOffering.rootdisksize
} else if (this.diskSize) {
this.vm.disksizetotalgb = this.diskSize
}