Damans227 commented on code in PR #14262:
URL: https://github.com/apache/cloudstack/pull/14262#discussion_r4426001157


##########
ui/src/views/storage/ResizeVolume.vue:
##########
@@ -105,14 +103,23 @@ export default {
     },
     fetchData () {
       this.loading = true
+      if (this.resource.size != null) {
+        this.form.size = this.resource.size / (1024 * 1024 * 1024)

Review Comment:
   yes thats it. the new commit doesnt do this yet, the form still sends the 
size on ok, so a 2.2 gb disk still fails. a root disk on an offering with a 
fixed root size fails too, even if only iops changed



##########
ui/src/views/storage/ResizeVolume.vue:
##########
@@ -105,14 +103,23 @@ export default {
     },
     fetchData () {
       this.loading = true
+      if (this.resource.size != null) {
+        this.form.size = this.resource.size / (1024 * 1024 * 1024)
+      }
+      if (!this.resource.diskofferingid) {
+        this.loading = false
+        return
+      }
       getAPI('listDiskOfferings', {

Review Comment:
   thanks, this looks right for the root disk iops fields



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to