mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-03-29 13:09:07 +00:00
Fixed querytab corresponding command bar (#1180)
Co-authored-by: sunilyadav <v-yadavsunil@microsoft.com>
This commit is contained in:
parent
e61f9f2a38
commit
b19144f792
@ -364,13 +364,11 @@ export default class QueryTabComponent extends React.Component<IQueryTabComponen
|
|||||||
}
|
}
|
||||||
|
|
||||||
public onTabClick(): void {
|
public onTabClick(): void {
|
||||||
setTimeout(() => {
|
if (!this.isCloseClicked) {
|
||||||
if (!this.isCloseClicked) {
|
useCommandBar.getState().setContextButtons(this.getTabsButtons());
|
||||||
useCommandBar.getState().setContextButtons(this.getTabsButtons());
|
} else {
|
||||||
} else {
|
this.isCloseClicked = false;
|
||||||
this.isCloseClicked = false;
|
}
|
||||||
}
|
|
||||||
}, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public onExecuteQueryClick = async (): Promise<void> => {
|
public onExecuteQueryClick = async (): Promise<void> => {
|
||||||
@ -875,9 +873,11 @@ export default class QueryTabComponent extends React.Component<IQueryTabComponen
|
|||||||
useCommandBar.getState().setContextButtons(this.getTabsButtons());
|
useCommandBar.getState().setContextButtons(this.getTabsButtons());
|
||||||
}
|
}
|
||||||
|
|
||||||
render(): JSX.Element {
|
componentDidMount(): void {
|
||||||
useCommandBar.getState().setContextButtons(this.getTabsButtons());
|
useCommandBar.getState().setContextButtons(this.getTabsButtons());
|
||||||
|
}
|
||||||
|
|
||||||
|
render(): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<div className="tab-pane" id={this.props.tabId} role="tabpanel">
|
<div className="tab-pane" id={this.props.tabId} role="tabpanel">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user