mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 02:25:59 +00:00
fixed qorking with tabs
This commit is contained in:
@@ -149,7 +149,7 @@ export async function openDatabaseObjectDetail(
|
|||||||
|
|
||||||
openNewTab(
|
openNewTab(
|
||||||
{
|
{
|
||||||
title: 'Query #',
|
title: sqlTemplate ? 'Query #' : pureName,
|
||||||
tooltip,
|
tooltip,
|
||||||
icon: sqlTemplate ? 'img sql-file' : icons[objectTypeField],
|
icon: sqlTemplate ? 'img sql-file' : icons[objectTypeField],
|
||||||
tabComponent: sqlTemplate ? 'QueryTab' : tabComponent,
|
tabComponent: sqlTemplate ? 'QueryTab' : tabComponent,
|
||||||
@@ -245,7 +245,7 @@ function Menu({ data }) {
|
|||||||
} else if (menu.isQueryDesigner) {
|
} else if (menu.isQueryDesigner) {
|
||||||
openNewTab(
|
openNewTab(
|
||||||
{
|
{
|
||||||
title: data.pureName,
|
title: 'Query #',
|
||||||
icon: 'img query-design',
|
icon: 'img query-design',
|
||||||
tabComponent: 'QueryDesignTab',
|
tabComponent: 'QueryDesignTab',
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -312,7 +312,7 @@ export default function DataGridCore(props) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
[formViewAvailable, display]
|
[formViewAvailable, display, openNewTab]
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!columns || columns.length == 0) return <LoadingInfo wrapper message="Waiting for structure" />;
|
if (!columns || columns.length == 0) return <LoadingInfo wrapper message="Waiting for structure" />;
|
||||||
|
|||||||
Reference in New Issue
Block a user