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

B #5402: Hide Remote connection button when vm not running (#1227)

This commit is contained in:
Frederick Borges 2021-05-19 10:49:11 +02:00 committed by Ruben S. Montero
parent 6f95bdc168
commit 2abce1df5f
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -327,6 +327,14 @@ define(function(require) {
$(".provision_rdp_button", context).toggle(Boolean(OpenNebulaVM.isConnectionSupported(data, 'rdp')));
$(".provision_wfile_button", context).toggle(Boolean(OpenNebulaVM.isWFileSupported(data)));
var state = get_provision_vm_state(data);
if (state.str === "RUNNING") {
$('.dropdown-menu-css', context).show();
}
else {
$('.dropdown-menu-css', context).hide();
}
var is_vnc_allowed = OpenNebulaVM.isVNCSupported(data);
var is_spice_allowed = OpenNebulaVM.isSPICESupported(data);