1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

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

This commit is contained in:
Frederick Borges 2022-01-25 18:56:38 +01:00 committed by GitHub
parent 490d7db9e1
commit 24aa42fa1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(),