Skip to content

Commit

Permalink
Closes #934, #935: Remove type from schema browser and don't show emp…
Browse files Browse the repository at this point in the history
…ty example column
  • Loading branch information
Marina Samuel committed Apr 8, 2019
1 parent 15c9e7a commit 01fe61f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
17 changes: 12 additions & 5 deletions client/app/components/queries/SchemaData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@ class SchemaData extends React.PureComponent {
dataIndex: 'type',
width: 400,
key: 'type',
}, {
title: 'Example',
dataIndex: 'example',
width: 400,
key: 'example',
}];

const hasExample =
this.props.tableMetadata.some(columnMetadata => columnMetadata.example);

if (hasExample) {
columns.push({
title: 'Example',
dataIndex: 'example',
width: 400,
key: 'example',
});
}

return (
<Drawer
title={this.props.tableName}
Expand Down
1 change: 0 additions & 1 deletion client/app/components/queries/schema-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
<div uib-collapse="table.collapsed">
<div ng-repeat="column in table.columns | filter:$ctrl.schemaFilterColumn track by column.key" class="table-open">
{{column.name}}
<span ng-if="column.type !== undefined">({{column.type}})</span>
<i class="fa fa-angle-double-right copy-to-editor" aria-hidden="true"
ng-click="$ctrl.itemSelected($event, [column.name])"></i>
</div>
Expand Down

0 comments on commit 01fe61f

Please sign in to comment.