Ravi Nori has uploaded a new change for review.

Change subject: webadmin: addHost form leaves json checkbox locked when 
switching between clusters
......................................................................

webadmin: addHost form leaves json checkbox locked when switching between 
clusters

Edit host dialog needs a change listener to enable
and disable json checkbox

Change-Id: I38bfe657750819a772a97251f3cee93cc2de9d76
Bug-Url: https://bugzilla.redhat.com/1209754
Signed-off-by: Ravi Nori <rn...@redhat.com>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/85/41485/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java
index 6cdfa2b..45ee052 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java
@@ -19,6 +19,7 @@
 import org.ovirt.engine.core.common.businessentities.VdsProtocol;
 import org.ovirt.engine.core.common.businessentities.VdsStatic;
 import org.ovirt.engine.core.common.mode.ApplicationMode;
+import org.ovirt.engine.core.common.queries.ConfigurationValues;
 import org.ovirt.engine.core.common.queries.GetNewVdsFenceStatusParameters;
 import org.ovirt.engine.core.common.queries.VdcQueryReturnValue;
 import org.ovirt.engine.core.common.queries.VdcQueryType;
@@ -1392,6 +1393,11 @@
                     updatePmTypeList(pmTypes, getPmSecondaryType());
                 }
             }), cluster.getcompatibility_version());
+            Boolean jsonSupported =
+                    (Boolean) 
AsyncDataProvider.getConfigValuePreConverted(ConfigurationValues.JsonProtocolSupported,
+                            cluster.getcompatibility_version().toString());
+            getProtocol().setEntity(jsonSupported);
+            getProtocol().setIsChangable(jsonSupported);
         }
     }
 


-- 
To view, visit https://gerrit.ovirt.org/41485
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I38bfe657750819a772a97251f3cee93cc2de9d76
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Ravi Nori <rn...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to