RIFT-14793: Creating new Virtual Link in Viewport includes double quotes in ip profil... 97/497/1
authorKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Tue, 4 Oct 2016 16:36:17 +0000 (09:36 -0700)
committerKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Tue, 4 Oct 2016 16:36:17 +0000 (09:36 -0700)
Signed-off-by: KIRAN KASHALKAR <kiran.kashalkar@riftio.com>
skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateStore.js

index a3708fe..61ebe3d 100644 (file)
@@ -172,7 +172,8 @@ class NSVirtualLinkCreateStore {
                let vld = _.cloneDeep(this.vld);
                this.vldInitParamsTypes.map((vldInitParamType) => {
                        if (currentVLDInitParamsType == vldInitParamType) {
-                               vld[currentVLDInitParamsType] = e.target.value;
+                               let value = e.target.nodeName == "SELECT" ? JSON.parse(e.target.value) : e.target.value;
+                               vld[currentVLDInitParamsType] = value;
                        } else {
                                vld[vldInitParamType] && delete vld[vldInitParamType];
                        }