mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
cond-disable ER diagram and query design #386
This commit is contained in:
parent
2adca64159
commit
13d4d34453
@ -127,6 +127,9 @@ registerCommand({
|
||||
name: 'Query design',
|
||||
menuName: 'New query design',
|
||||
onClick: () => newQueryDesign(),
|
||||
testEnabled: () =>
|
||||
getCurrentDatabase() &&
|
||||
findEngineDriver(getCurrentDatabase()?.connection, getExtensions())?.databaseEngineTypes?.includes('sql'),
|
||||
});
|
||||
|
||||
registerCommand({
|
||||
@ -144,6 +147,9 @@ registerCommand({
|
||||
icon: 'img diagram',
|
||||
name: 'ER Diagram',
|
||||
menuName: 'New ER diagram',
|
||||
testEnabled: () =>
|
||||
getCurrentDatabase() &&
|
||||
findEngineDriver(getCurrentDatabase()?.connection, getExtensions())?.databaseEngineTypes?.includes('sql'),
|
||||
onClick: () => newDiagram(),
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user