Cleanup
This commit is contained in:
parent
eed82075fd
commit
4272b614e2
|
@ -8,7 +8,6 @@ const modernize = columns => {
|
||||||
label: column.displayName,
|
label: column.displayName,
|
||||||
field: column.name,
|
field: column.name,
|
||||||
active: true,
|
active: true,
|
||||||
related: column.related,
|
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,20 +74,6 @@ const getDefault = (schema = {}) => {
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
if (column.columns) {
|
|
||||||
for (const relColumn of Object.keys(column.columns).filter(
|
|
||||||
relColumn => column.columns[relColumn].visible !== false
|
|
||||||
)) {
|
|
||||||
columns.push({
|
|
||||||
label: `${relColumn} (${column.name})`,
|
|
||||||
field: `${column.name}.${relColumn}`,
|
|
||||||
active: false,
|
|
||||||
order,
|
|
||||||
related: { field: column.name, subField: relColumn },
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return columns
|
return columns
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -104,7 +89,6 @@ const toGridFormat = draggableListColumns => {
|
||||||
active: entry.active,
|
active: entry.active,
|
||||||
width: entry.width,
|
width: entry.width,
|
||||||
conditions: entry.conditions,
|
conditions: entry.conditions,
|
||||||
related: entry.related,
|
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +105,6 @@ const toDraggableListFormat = (gridFormatColumns, createComponent) => {
|
||||||
columnType: column.columnType,
|
columnType: column.columnType,
|
||||||
width: column.width,
|
width: column.width,
|
||||||
conditions: column.conditions,
|
conditions: column.conditions,
|
||||||
related: column.related,
|
|
||||||
},
|
},
|
||||||
{}
|
{}
|
||||||
)
|
)
|
||||||
|
|
|
@ -98,7 +98,6 @@
|
||||||
order: idx,
|
order: idx,
|
||||||
conditions: column.conditions,
|
conditions: column.conditions,
|
||||||
visible: !!column.active,
|
visible: !!column.active,
|
||||||
related: column.related,
|
|
||||||
}
|
}
|
||||||
if (column.width) {
|
if (column.width) {
|
||||||
overrides[column.field].width = column.width
|
overrides[column.field].width = column.width
|
||||||
|
|
Loading…
Reference in New Issue