Frank Kobzik has uploaded a new change for review.

Change subject: frontend: Console btn availability fix
......................................................................

frontend: Console btn availability fix

This patch adjust availability setting of console connect button.

When the user already connected to the console, the button is disabled
for him/her (note that this holds for single session - we prevent
reconnecting to console for a user who already is connected).

Change-Id: I8c2dbdb26f899bcee5f5ffde767a3aad6e2622c3
Bug-Url: https://bugzilla.redhat.com/1145688
Signed-off-by: Frantisek Kobzik <fkob...@redhat.com>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SpiceConsoleModel.java
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/71/33271/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SpiceConsoleModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SpiceConsoleModel.java
index 71c4d9a..7abc386 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SpiceConsoleModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SpiceConsoleModel.java
@@ -148,6 +148,11 @@
     }
 
     @Override
+    public boolean canConnect() {
+        return super.canConnect() && !getIsConnected();
+    }
+
+    @Override
     protected void connect() {
         if (getEntity() != null) {
             getLogger().debug("Connecting to Spice console..."); //$NON-NLS-1$


-- 
To view, visit http://gerrit.ovirt.org/33271
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8c2dbdb26f899bcee5f5ffde767a3aad6e2622c3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Frank Kobzik <fkob...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to