This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.19 by this push:
     new 175eed294c8 Fix primary storage update form not showing existing 
values (#9809)
175eed294c8 is described below

commit 175eed294c8d71697f26bac9caa7e2dcb598d9c3
Author: Fabricio Duarte <[email protected]>
AuthorDate: Fri Oct 18 06:24:50 2024 -0300

    Fix primary storage update form not showing existing values (#9809)
---
 ui/src/views/infra/UpdatePrimaryStorage.vue | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/ui/src/views/infra/UpdatePrimaryStorage.vue 
b/ui/src/views/infra/UpdatePrimaryStorage.vue
index 7c026630a99..16de255a988 100644
--- a/ui/src/views/infra/UpdatePrimaryStorage.vue
+++ b/ui/src/views/infra/UpdatePrimaryStorage.vue
@@ -121,7 +121,6 @@ export default {
   },
   created () {
     this.initForm()
-    this.form.name = this.resource.name
   },
   computed: {
     canUpdateNFSMountOpts () {
@@ -136,7 +135,14 @@ export default {
   methods: {
     initForm () {
       this.formRef = ref()
-      this.form = reactive({ })
+      this.form = reactive({
+        name: this.resource.name,
+        tags: this.resource.tags,
+        isTagARule: this.resource.istagarule,
+        capacityBytes: this.resource.disksizetotal,
+        capacityIOPS: this.resource.capacityiops,
+        nfsMountOpts: this.resource.nfsmountopts
+      })
       this.rules = reactive({ })
     },
     isAdmin () {

Reply via email to