mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
new perspective command
This commit is contained in:
@@ -116,7 +116,16 @@ export function createPerspectiveNodeConfig(name: { schemaName?: string; pureNam
|
||||
return node;
|
||||
}
|
||||
|
||||
export function createPerspectiveConfig(rootObject: { schemaName?: string; pureName: string }): PerspectiveConfig {
|
||||
export function createPerspectiveConfig(rootObject?: { schemaName?: string; pureName: string }): PerspectiveConfig {
|
||||
if (!rootObject) {
|
||||
return {
|
||||
nodes: [],
|
||||
references: [],
|
||||
isArranged: true,
|
||||
rootDesignerId: null,
|
||||
};
|
||||
}
|
||||
|
||||
const rootNode = createPerspectiveNodeConfig(rootObject);
|
||||
return {
|
||||
nodes: [rootNode],
|
||||
|
||||
Reference in New Issue
Block a user