mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
simplify designer settings
This commit is contained in:
parent
fec2df9d2f
commit
395863da3f
@ -626,7 +626,7 @@
|
||||
}
|
||||
|
||||
export function canArrange() {
|
||||
return settings?.canArrange;
|
||||
return !!settings?.arrangeAlg;
|
||||
}
|
||||
|
||||
export function canExport() {
|
||||
|
@ -6,23 +6,15 @@
|
||||
<Designer
|
||||
{...$$props}
|
||||
settings={{
|
||||
showTableCloseButton: false,
|
||||
allowColumnOperations: false,
|
||||
allowCreateRefByDrag: false,
|
||||
allowTableAlias: false,
|
||||
updateFromDbInfo: true,
|
||||
useDatabaseReferences: true,
|
||||
allowScrollColumns: false,
|
||||
allowAddAllReferences: true,
|
||||
canArrange: true,
|
||||
canExport: true,
|
||||
canSelectColumns: false,
|
||||
canSelectTables: true,
|
||||
allowChangeColor: true,
|
||||
appendTableSystemMenu: true,
|
||||
customizeStyle: true,
|
||||
allowDefineVirtualReferences: true,
|
||||
canCheckTables: true,
|
||||
arrangeAlg: 'springy',
|
||||
}}
|
||||
referenceComponent={DiagramDesignerReference}
|
||||
|
@ -10,20 +10,8 @@
|
||||
allowColumnOperations: true,
|
||||
allowCreateRefByDrag: true,
|
||||
allowTableAlias: true,
|
||||
updateFromDbInfo: false,
|
||||
useDatabaseReferences: false,
|
||||
allowScrollColumns: true,
|
||||
allowAddAllReferences: false,
|
||||
canArrange: false,
|
||||
canExport: false,
|
||||
canSelectColumns: true,
|
||||
canSelectTables: false,
|
||||
allowChangeColor: false,
|
||||
appendTableSystemMenu: false,
|
||||
customizeStyle: false,
|
||||
allowDefineVirtualReferences: false,
|
||||
canCheckTables: true,
|
||||
arrangeAlg: null,
|
||||
}}
|
||||
referenceComponent={QueryDesignerReference}
|
||||
/>
|
||||
|
@ -82,18 +82,8 @@
|
||||
allowColumnOperations: true,
|
||||
allowCreateRefByDrag: true,
|
||||
allowTableAlias: true,
|
||||
updateFromDbInfo: false,
|
||||
useDatabaseReferences: false,
|
||||
allowScrollColumns: true,
|
||||
allowAddAllReferences: false,
|
||||
canArrange: true,
|
||||
canExport: false,
|
||||
canSelectColumns: true,
|
||||
canSelectTables: false,
|
||||
allowChangeColor: false,
|
||||
appendTableSystemMenu: false,
|
||||
customizeStyle: false,
|
||||
allowDefineVirtualReferences: false,
|
||||
canCheckTables: true,
|
||||
arrangeAlg: 'tree',
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user