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

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

(cherry picked from commit 871dedd49fce00bfb0a34409b06f6496060a8a77)
This commit is contained in:
Frederick Borges 2021-05-19 10:49:11 +02:00 committed by Tino Vazquez
parent 7d9e89756e
commit 16e029fa51

View File

@ -326,6 +326,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);