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

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


The following commit(s) were added to refs/heads/master by this push:
     new c9271e2  infra: Fix for secondary storage form (#345)
c9271e2 is described below

commit c9271e28c3f4169b39b1ab0100861b81d7017f46
Author: Pearl Dsilva <[email protected]>
AuthorDate: Wed May 20 14:51:13 2020 +0530

    infra: Fix for secondary storage form (#345)
    
    Fixes #344
    
    Co-authored-by: Pearl Dsilva <[email protected]>
---
 src/views/infra/AddSecondaryStorage.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/views/infra/AddSecondaryStorage.vue 
b/src/views/infra/AddSecondaryStorage.vue
index ddcfec4..8ed3ecd 100644
--- a/src/views/infra/AddSecondaryStorage.vue
+++ b/src/views/infra/AddSecondaryStorage.vue
@@ -47,6 +47,7 @@
                   initialValue: this.zoneSelected,
                   rules: [{ required: true, message: 'required'}]
                 }]"
+              @change="val => { zoneSelected = val }"
             >
               <a-select-option
                 :value="zone.id"
@@ -195,7 +196,7 @@ export default {
         if (json && json.listzonesresponse && json.listzonesresponse.zone) {
           this.zones = json.listzonesresponse.zone
           if (this.zones.length > 0) {
-            this.zoneSelected = this.zones[0].name
+            this.zoneSelected = this.zones[0].id || ''
           }
         }
       })

Reply via email to