mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +00:00
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:
committed by
Chris Williams
parent
6875868cf6
commit
3f1dfb3173
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user