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

M #~: Fix rdp condition in cloud view (#128)

This commit is contained in:
Sergio Betanzos 2020-07-29 10:42:41 +02:00 committed by GitHub
parent c2999a12be
commit 35902214ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -682,7 +682,7 @@ define(function(require) {
"isRDPSupported": isRDPSupported,
"isSPICESupported": isSPICESupported,
"isWFileSupported": isWFileSupported,
"hasConnection": hasConnection,
"hasRDP": hasRDP,
"buttonVnc": buttonVnc,
"buttonSpice": buttonSpice,
"buttonWFile": buttonWFile,

View File

@ -121,10 +121,10 @@ define(function(require) {
var showRdp = false, template = this.element.TEMPLATE
if (template.NIC) {
showRdp = OpennebulaVM.hasConnection(template.NIC, "rdp");
showRdp = OpennebulaVM.hasRDP(template.NIC);
if (!showRdp && template.NIC_ALIAS) {
showRdp = OpennebulaVM.hasConnection(template.NIC_ALIAS, "rdp");
showRdp = OpennebulaVM.hasRDP(template.NIC_ALIAS);
}
}
$(".attach_rdp").toggle(!showRdp);