{
this.toggleTable(e);
}}
>
{table.name}
{table.isMetadataLoading || table.isExtraMetadataLoading ? (
) : (
{this.renderControls()}
)}
{
this.toggleTable(e);
}}
className={
'text-primary pointer m-l-10 ' +
'fa fa-lg ' +
`fa-angle-${table.expanded ? 'up' : 'down'}`
}
/>
);
}
renderBody() {
const { table } = this.props;
let cols;
if (table.columns) {
cols = table.columns.slice();
if (this.state.sortColumns) {
cols.sort((a, b) => {
const colA = a.name.toUpperCase();
const colB = b.name.toUpperCase();
if (colA < colB) {
return -1;
}
if (colA > colB) {
return 1;
}
return 0;
});
}
}
const metadata = (