This is an automated email from the ASF dual-hosted git repository.

vogievetsky pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new aeb2ee59a28 Added an option to hide the workbench-view toolbar (#16785)
aeb2ee59a28 is described below

commit aeb2ee59a2881a1fe68919e7b9fb522487018c93
Author: Sébastien <[email protected]>
AuthorDate: Wed Jul 24 00:36:54 2024 +0200

    Added an option to hide the workbench-view toolbar (#16785)
---
 web-console/src/views/workbench-view/workbench-view.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/web-console/src/views/workbench-view/workbench-view.tsx 
b/web-console/src/views/workbench-view/workbench-view.tsx
index 0fcaa5a1da9..a125b8d2987 100644
--- a/web-console/src/views/workbench-view/workbench-view.tsx
+++ b/web-console/src/views/workbench-view/workbench-view.tsx
@@ -104,6 +104,7 @@ export interface WorkbenchViewProps {
   maxTaskMenuHeader?: JSX.Element;
   enginesLabelFn?: ComponentProps<typeof QueryTab>['enginesLabelFn'];
   maxTaskLabelFn?: ComponentProps<typeof QueryTab>['maxTaskLabelFn'];
+  hideToolbar?: boolean;
 }
 
 export interface WorkbenchViewState {
@@ -613,8 +614,9 @@ export class WorkbenchView extends 
React.PureComponent<WorkbenchViewProps, Workb
   }
 
   private renderToolbar() {
-    const { queryEngines } = this.props;
+    const { queryEngines, hideToolbar } = this.props;
     if (!queryEngines.includes('sql-msq-task')) return;
+    if (hideToolbar) return;
 
     const { showRecentQueryTaskPanel } = this.state;
     return (


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to