diagram tab

This commit is contained in:
Jan Prochazka
2022-01-05 14:28:07 +01:00
parent 397fbb9832
commit c9c962abce
4 changed files with 132 additions and 0 deletions

View File

@@ -53,6 +53,10 @@
label: 'Query designer',
isQueryDesigner: true,
},
{
label: 'Show diagram',
isDiagram: true,
},
{
divider: true,
},
@@ -531,6 +535,30 @@
},
}
);
} else if (menu.isDiagram) {
openNewTab(
{
title: 'Diagram #',
icon: 'img diagram',
tabComponent: 'DiagramTab',
props: {
conid: data.conid,
database: data.database,
},
},
{
editor: {
tables: [
{
...data,
designerId: uuidv1(),
left: 50,
top: 50,
},
],
},
}
);
} else if (menu.sqlGeneratorProps) {
showModal(SqlGeneratorModal, {
initialObjects: [data],