mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-03 21:52:31 +09:00
M #~: Minor fix on remote buttons (#1888)
This commit is contained in:
1 parent
7fb14cedd1
commit
6b52abb5e3
1 file changed
+3
-5
@@ -138,13 +138,11 @@ const PreConsoleButton = memo(
|
||||
return null
|
||||
}
|
||||
|
||||
if (isVCenter(vm)) {
|
||||
return connectionType === VM_ACTIONS.VMRC ? (
|
||||
<VMRCButton {...props} />
|
||||
) : null
|
||||
if (connectionType === VM_ACTIONS.VMRC) {
|
||||
return isVCenter(vm) ? <VMRCButton {...props} /> : null
|
||||
}
|
||||
|
||||
return <GuacamoleButton {...props} />
|
||||
return !isVCenter(vm) ? <GuacamoleButton {...props} /> : null
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user