From 6b52abb5e35cb0b7ed296d98447212e7e4309694 Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Tue, 29 Mar 2022 10:29:35 +0200 Subject: [PATCH] M #~: Minor fix on remote buttons (#1888) --- .../src/client/components/Buttons/ConsoleAction.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/fireedge/src/client/components/Buttons/ConsoleAction.js b/src/fireedge/src/client/components/Buttons/ConsoleAction.js index 4d8627bd35..dcc365b205 100644 --- a/src/fireedge/src/client/components/Buttons/ConsoleAction.js +++ b/src/fireedge/src/client/components/Buttons/ConsoleAction.js @@ -138,13 +138,11 @@ const PreConsoleButton = memo( return null } - if (isVCenter(vm)) { - return connectionType === VM_ACTIONS.VMRC ? ( - - ) : null + if (connectionType === VM_ACTIONS.VMRC) { + return isVCenter(vm) ? : null } - return + return !isVCenter(vm) ? : null } )