Adding column type label to dropdowns (#4566)

* Adding column type label to dropdowns

* Changing the style of column type label

* Adding tests for ColumnTypeLabel

* Adding tests for time and fixing if statement order

* Changing location of ColumnTypeLabel tests

* Updating ColumnTypeLabel structure
This commit is contained in:
michellethomas
2018-03-16 14:19:09 -07:00
committed by Chris Williams
parent 6875868cf6
commit 3f1dfb3173
9 changed files with 155 additions and 17 deletions

View File

@@ -153,7 +153,7 @@ export default class DatasourceControl extends React.PureComponent {
</Label>
{` ${datasource.database.name} `}
</div>
<Row>
<Row className="datasource-container">
<Col md={6}>
<strong>Columns</strong>
{datasource.columns.map(col => (
@@ -163,7 +163,7 @@ export default class DatasourceControl extends React.PureComponent {
<Col md={6}>
<strong>Metrics</strong>
{datasource.metrics.map(m => (
<div key={m.metric_name}><MetricOption metric={m} /></div>
<div key={m.metric_name}><MetricOption metric={m} showType /></div>
))}
</Col>
</Row>