From 24aa42fa1f726423d62328520ea0510e4d30cfb0 Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Tue, 25 Jan 2022 18:56:38 +0100 Subject: [PATCH] B #5707: Hide remote console options not available (#1718) --- src/sunstone/public/app/opennebula/vm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/opennebula/vm.js b/src/sunstone/public/app/opennebula/vm.js index 8488c01f7b..18ca7f3b4e 100644 --- a/src/sunstone/public/app/opennebula/vm.js +++ b/src/sunstone/public/app/opennebula/vm.js @@ -1266,8 +1266,9 @@ define(function(require) { var actionEnabled = Config.isTabActionEnabled("vms-tab", "VM.save_virt_viewer"); var vncSupported = graphicSupported(element, "vnc"); var spiceSupported = graphicSupported(element, "spice"); + var isvCenterVM = isVCenterVM(element); - return (actionEnabled && history && (vncSupported || spiceSupported)) + return (actionEnabled && history && (vncSupported || spiceSupported) && !isvCenterVM) ? { hostname: history.HOSTNAME, type: element.TEMPLATE.GRAPHICS.TYPE.toLowerCase(),