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() {
|
export function canArrange() {
|
||||||
return settings?.canArrange;
|
return !!settings?.arrangeAlg;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function canExport() {
|
export function canExport() {
|
||||||
|
@ -6,23 +6,15 @@
|
|||||||
<Designer
|
<Designer
|
||||||
{...$$props}
|
{...$$props}
|
||||||
settings={{
|
settings={{
|
||||||
showTableCloseButton: false,
|
|
||||||
allowColumnOperations: false,
|
|
||||||
allowCreateRefByDrag: false,
|
|
||||||
allowTableAlias: false,
|
|
||||||
updateFromDbInfo: true,
|
updateFromDbInfo: true,
|
||||||
useDatabaseReferences: true,
|
useDatabaseReferences: true,
|
||||||
allowScrollColumns: false,
|
|
||||||
allowAddAllReferences: true,
|
allowAddAllReferences: true,
|
||||||
canArrange: true,
|
|
||||||
canExport: true,
|
canExport: true,
|
||||||
canSelectColumns: false,
|
|
||||||
canSelectTables: true,
|
canSelectTables: true,
|
||||||
allowChangeColor: true,
|
allowChangeColor: true,
|
||||||
appendTableSystemMenu: true,
|
appendTableSystemMenu: true,
|
||||||
customizeStyle: true,
|
customizeStyle: true,
|
||||||
allowDefineVirtualReferences: true,
|
allowDefineVirtualReferences: true,
|
||||||
canCheckTables: true,
|
|
||||||
arrangeAlg: 'springy',
|
arrangeAlg: 'springy',
|
||||||
}}
|
}}
|
||||||
referenceComponent={DiagramDesignerReference}
|
referenceComponent={DiagramDesignerReference}
|
||||||
|
@ -10,20 +10,8 @@
|
|||||||
allowColumnOperations: true,
|
allowColumnOperations: true,
|
||||||
allowCreateRefByDrag: true,
|
allowCreateRefByDrag: true,
|
||||||
allowTableAlias: true,
|
allowTableAlias: true,
|
||||||
updateFromDbInfo: false,
|
|
||||||
useDatabaseReferences: false,
|
|
||||||
allowScrollColumns: true,
|
allowScrollColumns: true,
|
||||||
allowAddAllReferences: false,
|
|
||||||
canArrange: false,
|
|
||||||
canExport: false,
|
|
||||||
canSelectColumns: true,
|
canSelectColumns: true,
|
||||||
canSelectTables: false,
|
|
||||||
allowChangeColor: false,
|
|
||||||
appendTableSystemMenu: false,
|
|
||||||
customizeStyle: false,
|
|
||||||
allowDefineVirtualReferences: false,
|
|
||||||
canCheckTables: true,
|
|
||||||
arrangeAlg: null,
|
|
||||||
}}
|
}}
|
||||||
referenceComponent={QueryDesignerReference}
|
referenceComponent={QueryDesignerReference}
|
||||||
/>
|
/>
|
||||||
|
@ -82,18 +82,8 @@
|
|||||||
allowColumnOperations: true,
|
allowColumnOperations: true,
|
||||||
allowCreateRefByDrag: true,
|
allowCreateRefByDrag: true,
|
||||||
allowTableAlias: true,
|
allowTableAlias: true,
|
||||||
updateFromDbInfo: false,
|
|
||||||
useDatabaseReferences: false,
|
|
||||||
allowScrollColumns: true,
|
allowScrollColumns: true,
|
||||||
allowAddAllReferences: false,
|
|
||||||
canArrange: true,
|
|
||||||
canExport: false,
|
|
||||||
canSelectColumns: true,
|
canSelectColumns: true,
|
||||||
canSelectTables: false,
|
|
||||||
allowChangeColor: false,
|
|
||||||
appendTableSystemMenu: false,
|
|
||||||
customizeStyle: false,
|
|
||||||
allowDefineVirtualReferences: false,
|
|
||||||
canCheckTables: true,
|
canCheckTables: true,
|
||||||
arrangeAlg: 'tree',
|
arrangeAlg: 'tree',
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user