Skip to content

Commit

Permalink
Ensure keyboard shortcut for query execution is disabled when query e…
Browse files Browse the repository at this point in the history
…xecution is in progress.#6664
  • Loading branch information
yogeshmahajan-1903 committed Aug 8, 2023
1 parent 8afa17d commit f984fa9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,19 +393,19 @@ export function MainToolBar({containerRef, onFilterClick, onManageMacros}) {
{
shortcut: queryToolPref.execute_query,
options: {
callback: ()=>{executeQuery();}
callback: ()=>{!buttonsDisabled['execute']?executeQuery():null;}
}
},
{
shortcut: queryToolPref.explain_query,
options: {
callback: (e)=>{e.preventDefault();explain();}
callback: (e)=>{e.preventDefault(); !buttonsDisabled['explain']?explain():null;}
}
},
{
shortcut: queryToolPref.explain_analyze_query,
options: {
callback: ()=>{explainAnalyse();}
callback: ()=>{!buttonsDisabled['explain_analyse']?explainAnalyse():null;}
}
},
{
Expand Down

0 comments on commit f984fa9

Please sign in to comment.