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() {
return settings?.canArrange;
return !!settings?.arrangeAlg;
}
export function canExport() {

View File

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

View File

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

View File

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