1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

M #~: Fix rdp in cloud view (#154)

This commit is contained in:
Sergio Betanzos 2020-08-17 18:19:07 +02:00 committed by GitHub
parent b98baba6c5
commit 9548fb3782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,7 +329,7 @@ define(function(require) {
$(".provision_save_as_template_confirm_button_disabled", context).hide();
}
$(".provision_rdp_button", context).toggle(Boolean(OpenNebulaVM.isConnectionSupported(element, 'rdp')));
$(".provision_rdp_button", context).toggle(Boolean(OpenNebulaVM.isConnectionSupported(data, 'rdp')));
$(".provision_wfile_button", context).toggle(Boolean(OpenNebulaVM.isWFileSupported(data)));
if (OpenNebulaVM.isVNCSupported(data) ||
@ -759,7 +759,7 @@ define(function(require) {
context.on("click", ".provision_rdp_button", function() {
var vm = $(".provision_info_vm", context).data("vm") || {};
var rdp = OpenNebulaVM.isConnectionSupported(element, 'rdp') || {};
var rdp = OpenNebulaVM.isConnectionSupported(vm, 'rdp') || {};
var username, password;
if (vm.TEMPLATE && vm.TEMPLATE.CONTEXT) {