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

B #4241: Fix visibility of RDP button on the VM (#4253)

This commit is contained in:
Sergio Betanzos 2020-02-25 10:43:15 +01:00 committed by GitHub
parent fc39ec6967
commit deefae0963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -875,8 +875,10 @@ define(function(require) {
function isRDPSupported(element) {
return ( element.TEMPLATE &&
element.TEMPLATE.NIC &&
element.TEMPLATE.NIC.length > 0 &&
element.TEMPLATE.NIC.filter(nic => nic.RDP && nic.RDP == "YES")
Array.isArray(element.TEMPLATE.NIC) &&
element.TEMPLATE.NIC.some(function(nic) {
return nic.RDP && nic.RDP == "YES"
})
);
}

View File

@ -54,7 +54,9 @@ define(function(require) {
}
function _retrieveInput(value) {
return TemplateUtils.escapeDoubleQuotes( value );
return (value instanceof $)
? value.val()
: TemplateUtils.escapeDoubleQuotes( value );
}
// TODO: wizard_field_64 for fill method