simplify designer settings

This commit is contained in:
Jan Prochazka 2022-08-27 10:17:11 +02:00
parent fec2df9d2f
commit 395863da3f
4 changed files with 1 additions and 31 deletions

View File

@ -626,7 +626,7 @@
} }
export function canArrange() { export function canArrange() {
return settings?.canArrange; return !!settings?.arrangeAlg;
} }
export function canExport() { export function canExport() {

View File

@ -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}

View File

@ -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}
/> />

View File

@ -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',
}} }}