open structure/data from status bar

This commit is contained in:
Jan Prochazka
2021-11-21 12:54:12 +01:00
parent 6a606bc733
commit 51c490218a
5 changed files with 52 additions and 2 deletions

View File

@@ -49,6 +49,8 @@
import registerCommand from '../commands/registerCommand';
import { registerMenu } from '../utility/contextMenu';
import { showSnackbarSuccess } from '../utility/snackbar';
import StatusBarTabItem from '../widgets/StatusBarTabItem.svelte';
import openNewTab from '../utility/openNewTab';
export let tabid;
export let conid;
@@ -126,3 +128,23 @@
{changeSetStore}
{dispatchChangeSet}
/>
<StatusBarTabItem
text="Open structure"
icon="icon structure"
clickable
onClick={() => {
openNewTab({
title: pureName,
icon: 'img table-structure',
tabComponent: 'TableStructureTab',
props: {
schemaName,
pureName,
conid,
database,
objectTypeField: 'tables',
},
});
}}
/>