B #5707: Hide remote console options not available (#1718)

This commit is contained in:
Frederick Borges authored and GitHub committed 2022-01-25 18:56:38 +01:00
1 parent 490d7db9e1
commit 24aa42fa1f
1 file changed
+2 -1
+2 -1
View File
@@ -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(),