From 62089767f6830504eb5ec6bff83406d664e6f06c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Beims=20Br=C3=A4scher?= Date: Thu, 30 Dec 2021 06:51:11 -0300 Subject: [PATCH] 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 --- ui/src/views/compute/DeployVM.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/views/compute/DeployVM.vue b/ui/src/views/compute/DeployVM.vue index 990d2eadeca..7109b9b4f1b 100644 --- a/ui/src/views/compute/DeployVM.vue +++ b/ui/src/views/compute/DeployVM.vue @@ -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 }