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