mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 22:36:01 +00:00
focus query editor
This commit is contained in:
@@ -284,6 +284,7 @@
|
||||
icon: 'img sql-file',
|
||||
tooltip,
|
||||
tabComponent: 'QueryTab',
|
||||
focused: true,
|
||||
props: {
|
||||
conid: data._id,
|
||||
},
|
||||
@@ -320,7 +321,7 @@
|
||||
],
|
||||
{ divider: true },
|
||||
!data.singleDatabase && [
|
||||
hasPermission(`dbops/query`) && { onClick: handleNewQuery, text: 'New query', isNewQuery: true },
|
||||
hasPermission(`dbops/query`) && { onClick: handleNewQuery, text: 'New Query (server)', isNewQuery: true },
|
||||
$openedConnections.includes(data._id) &&
|
||||
data.status && {
|
||||
text: 'Refresh',
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
icon: 'img sql-file',
|
||||
tooltip,
|
||||
tabComponent: 'QueryTab',
|
||||
focused: true,
|
||||
props: {
|
||||
conid: connection._id,
|
||||
database: name,
|
||||
@@ -240,6 +241,7 @@
|
||||
title: 'Query #',
|
||||
icon: 'img query-design',
|
||||
tabComponent: 'QueryDesignTab',
|
||||
focused: true,
|
||||
props: {
|
||||
conid: connection._id,
|
||||
database: name,
|
||||
|
||||
@@ -421,6 +421,7 @@
|
||||
title: 'Query #',
|
||||
icon: 'img query-design',
|
||||
tabComponent: 'QueryDesignTab',
|
||||
focused: true,
|
||||
props: {
|
||||
conid: data.conid,
|
||||
database: data.database,
|
||||
@@ -666,6 +667,7 @@
|
||||
{
|
||||
// title: getObjectTitle(connection, schemaName, pureName),
|
||||
title: tabComponent ? getObjectTitle(connection, schemaName, pureName) : 'Query #',
|
||||
focused: tabComponent == null,
|
||||
tooltip,
|
||||
icon:
|
||||
icon ||
|
||||
|
||||
@@ -216,6 +216,7 @@
|
||||
title: 'Query #',
|
||||
icon: 'img sql-file',
|
||||
tabComponent: 'QueryTab',
|
||||
focused: true,
|
||||
props: {
|
||||
conid,
|
||||
database,
|
||||
|
||||
@@ -153,6 +153,7 @@
|
||||
title: 'Query #',
|
||||
icon: 'img sql-file',
|
||||
tabComponent: 'QueryTab',
|
||||
focused: true,
|
||||
props: {
|
||||
schemaName: display.baseTableOrSimilar?.schemaName,
|
||||
pureName: display.baseTableOrSimilar?.pureName,
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
|
||||
const handleGenerateScript = async e => {
|
||||
const values = $formValues as any;
|
||||
const code = await createImpExpScript($extensions, values, undefined, true);
|
||||
const code = await createImpExpScript($extensions, values, true);
|
||||
openNewTab(
|
||||
{
|
||||
title: 'Shell #',
|
||||
|
||||
@@ -161,6 +161,7 @@
|
||||
icon: 'img sql-file',
|
||||
tabComponent: 'QueryTab',
|
||||
objectTypeField: appObjectData.objectTypeField,
|
||||
focused: true,
|
||||
props: {
|
||||
conid,
|
||||
database,
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
title: 'Query #',
|
||||
icon: 'icon sql-file',
|
||||
tabComponent: 'QueryTab',
|
||||
focused: true,
|
||||
props: {
|
||||
conid: item.conid,
|
||||
database: item.database,
|
||||
|
||||
Reference in New Issue
Block a user