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:
parent
c2999a12be
commit
35902214ad
@ -682,7 +682,7 @@ define(function(require) {
|
||||
"isRDPSupported": isRDPSupported,
|
||||
"isSPICESupported": isSPICESupported,
|
||||
"isWFileSupported": isWFileSupported,
|
||||
"hasConnection": hasConnection,
|
||||
"hasRDP": hasRDP,
|
||||
"buttonVnc": buttonVnc,
|
||||
"buttonSpice": buttonSpice,
|
||||
"buttonWFile": buttonWFile,
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user