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

B #5707: Fix detail view for VM in pending state (#1834)

(cherry picked from commit 494311499a340541c3ca374f4314fd052a6bd065)
This commit is contained in:
Sergio Betanzos 2022-03-11 12:22:13 +01:00 committed by Tino Vazquez
parent 1030286105
commit 48564099f3
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -1286,7 +1286,8 @@ define(function(require) {
var actionEnabled = Config.isTabActionEnabled("vms-tab", "VM.save_virt_viewer");
var vncSupported = graphicSupported(element, "vnc");
var spiceSupported = graphicSupported(element, "spice");
var isKVM = history.HID ? isKVMVM(history.HID) : false;
var hostId = history && history.HID
var isKVM = hostId ? isKVMVM(hostId) : false;
return (actionEnabled && history && (vncSupported || spiceSupported) && isKVM)
? {