mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 02:36:00 +00:00
execute command disabled, when query has not connection
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
execute: true,
|
||||
toggleComment: true,
|
||||
findReplace: true,
|
||||
executeAdditionalCondition: () => getCurrentEditor()?.hasConnection(),
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -121,6 +122,10 @@
|
||||
return tabid;
|
||||
}
|
||||
|
||||
export function hasConnection() {
|
||||
return !!conid;
|
||||
}
|
||||
|
||||
export async function execute() {
|
||||
if (busy) return;
|
||||
executeNumber++;
|
||||
|
||||
Reference in New Issue
Block a user