Ensure keyboard shortcut for query execution is disabled when query execution is in progress. #6664

This commit is contained in:
Yogesh Mahajan 2023-08-09 10:49:45 +05:30 committed by GitHub
parent 8afa17d692
commit 0b24a8f39a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;}
}
},
{