mirror of https://github.com/apache/druid.git
Added an option to hide the workbench-view toolbar (#16785)
This commit is contained in:
parent
704962ec8e
commit
aeb2ee59a2
|
@ -104,6 +104,7 @@ export interface WorkbenchViewProps {
|
||||||
maxTaskMenuHeader?: JSX.Element;
|
maxTaskMenuHeader?: JSX.Element;
|
||||||
enginesLabelFn?: ComponentProps<typeof QueryTab>['enginesLabelFn'];
|
enginesLabelFn?: ComponentProps<typeof QueryTab>['enginesLabelFn'];
|
||||||
maxTaskLabelFn?: ComponentProps<typeof QueryTab>['maxTaskLabelFn'];
|
maxTaskLabelFn?: ComponentProps<typeof QueryTab>['maxTaskLabelFn'];
|
||||||
|
hideToolbar?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface WorkbenchViewState {
|
export interface WorkbenchViewState {
|
||||||
|
@ -613,8 +614,9 @@ export class WorkbenchView extends React.PureComponent<WorkbenchViewProps, Workb
|
||||||
}
|
}
|
||||||
|
|
||||||
private renderToolbar() {
|
private renderToolbar() {
|
||||||
const { queryEngines } = this.props;
|
const { queryEngines, hideToolbar } = this.props;
|
||||||
if (!queryEngines.includes('sql-msq-task')) return;
|
if (!queryEngines.includes('sql-msq-task')) return;
|
||||||
|
if (hideToolbar) return;
|
||||||
|
|
||||||
const { showRecentQueryTaskPanel } = this.state;
|
const { showRecentQueryTaskPanel } = this.state;
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue