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

When switching between clusters that don't support json
protocol to ones that support the protocol the JSON
checkbox is left disabled.

Change-Id: I29f5de9f20ccf12382da99117c1f4fd922650b1b
Bug-Url: https://bugzilla.redhat.com/1209754
Signed-off-by: Ravi Nori <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/90/39690/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java
index bab682a..637595c 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java
@@ -706,6 +706,7 @@
                                     
cluster.getcompatibility_version().toString());
                     if (jsonSupported) {
                         hostModel.getProtocol().setEntity(true);
+                        hostModel.getProtocol().setIsChangable(true);
                     } else {
                         hostModel.getProtocol().setEntity(false);
                         hostModel.getProtocol().setIsChangable(false);


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I29f5de9f20ccf12382da99117c1f4fd922650b1b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Ravi Nori <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to