From 392bd5b73b7905f24b1fd340f874933df325afb8 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:54:57 -0700 Subject: [PATCH] [Console][Multiple Datasource]Fine tuned dev tool datasource selector UI (#3806) (#3850) * Fine tuned dev tool datasource selector UI * Refactor DevToolsWrapper to conditionally render the EuiComboBox based on the dataSourceEnabled prop --------- (cherry picked from commit 971165fd4884b49dacd646535066a3f2b57334b6) Signed-off-by: Su Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- 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} +