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