From 971165fd4884b49dacd646535066a3f2b57334b6 Mon Sep 17 00:00:00 2001 From: Zhongnan Su Date: Fri, 14 Apr 2023 14:54:00 -0700 Subject: [PATCH] [Console][Multiple Datasource]Fine tuned dev tool datasource selector UI (#3806) * Fine tuned dev tool datasource selector UI * Refactor DevToolsWrapper to conditionally render the EuiComboBox based on the dataSourceEnabled prop Signed-off-by: Su --------- Signed-off-by: Su --- src/plugins/dev_tools/public/application.tsx | 81 +++++++++----------- src/plugins/dev_tools/public/index.scss | 10 ++- 2 files changed, 44 insertions(+), 47 deletions(-) diff --git a/src/plugins/dev_tools/public/application.tsx b/src/plugins/dev_tools/public/application.tsx index 859d62acee51..7066c63d9798 100644 --- a/src/plugins/dev_tools/public/application.tsx +++ b/src/plugins/dev_tools/public/application.tsx @@ -154,51 +154,42 @@ function DevToolsWrapper({ return (
-
- - - - {devTools.map((currentDevTool) => ( - - { - if (!currentDevTool.isDisabled()) { - updateRoute(`/${currentDevTool.id}`); - } - }} - > - {currentDevTool.title} - - - ))} - - - {dataSourceEnabled ? ( - - - - ) : null} - -
+ + {devTools.map((currentDevTool) => ( + + { + if (!currentDevTool.isDisabled()) { + updateRoute(`/${currentDevTool.id}`); + } + }} + > + {currentDevTool.title} + + + ))} + {dataSourceEnabled ? ( +
+ +
+ ) : null} +