[Kimchi-devel] [PATCH] [Kimchi] Remove View Console link from guests that doesn't support vnc/spice

Jose Ricardo Ziviani joserz at linux.vnet.ibm.com
Wed Mar 23 18:33:24 UTC 2016


Signed-off-by: Jose Ricardo Ziviani <joserz at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.guest_main.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/js/src/kimchi.guest_main.js b/ui/js/src/kimchi.guest_main.js
index 2542a63..4e588e2 100644
--- a/ui/js/src/kimchi.guest_main.js
+++ b/ui/js/src/kimchi.guest_main.js
@@ -693,6 +693,8 @@ kimchi.createGuestLi = function(vmObject, prevScreenImage, openMenu) {
         });
         consoleActions.show();
     } else { //we don't recognize the VMs supported graphics, so hide the menu choice
+        result.find('.vnc-link').css("display", "none");
+        result.find('.column-vnc').html('--');
         consoleActions.hide();
         consoleActions.off("click", function(event) {
             event.preventDefault();
-- 
1.9.1




More information about the Kimchi-devel mailing list