mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
M #~: Fix context in rdp button (#4656)
This commit is contained in:
parent
8b0503a500
commit
b8363dbaeb
@ -179,8 +179,8 @@ define(function(require) {
|
||||
|
||||
if (args && args.ip && args.name) {
|
||||
var credentials = {};
|
||||
args.username && (credentials["username"] = args.username);
|
||||
args.password && (credentials["password"] = args.password);
|
||||
args.username && (credentials["USERNAME"] = args.username);
|
||||
args.password && (credentials["PASSWORD"] = args.password);
|
||||
Files.downloadRdpFile(args.ip, args.name, credentials);
|
||||
}
|
||||
else if (vm && vm.NAME && vm.TEMPLATE && vm.TEMPLATE.NIC) {
|
||||
|
@ -23,7 +23,7 @@ define(function(require) {
|
||||
};
|
||||
|
||||
function _downloadRdpFile(ip, name = "vm_name", credentials = {}) {
|
||||
var file = _rdpFile(ip, credentials.username, credentials.password);
|
||||
var file = _rdpFile(ip, credentials.USERNAME, credentials.PASSWORD);
|
||||
_download(name, ".rdp", file);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user