1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-19 06:50:07 +03:00

feature #3011: Disable novnc button in cloud view if it's not enabled in the VM

This commit is contained in:
Daniel Molina 2015-01-21 11:45:05 +01:00
parent f127a7f80c
commit 0d1a0992e5

View File

@ -3708,6 +3708,11 @@ function setup_info_vm(context) {
break;
}
if (!enableVnc(data) && !enableSPICE(data)) {
$(".provision_vnc_button", context).hide();
$(".provision_vnc_button_disabled", context).hide();
}
$(".provision_info_vm", context).attr("vm_id", data.ID);
$(".provision_info_vm", context).data("vm", data);