mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
[FilterBox] use column verbose names (#2970)
This commit is contained in:
parent
1ce3b81d01
commit
c083aec8e8
@ -16,6 +16,7 @@ const propTypes = {
|
||||
filtersChoices: PropTypes.object,
|
||||
onChange: PropTypes.func,
|
||||
showDateFilter: PropTypes.bool,
|
||||
datasource: PropTypes.object.isRequired,
|
||||
};
|
||||
|
||||
const defaultProps = {
|
||||
@ -81,7 +82,7 @@ class FilterBox extends React.Component {
|
||||
});
|
||||
return (
|
||||
<div key={filter} className="m-b-5">
|
||||
{filter}
|
||||
{this.props.datasource.verbose_map[filter] || filter}
|
||||
<Select.Creatable
|
||||
placeholder={`Select [${filter}]`}
|
||||
key={filter}
|
||||
@ -143,6 +144,7 @@ function filterBox(slice, payload) {
|
||||
filtersChoices={filtersChoices}
|
||||
onChange={slice.addFilter}
|
||||
showDateFilter={fd.date_filter}
|
||||
datasource={slice.datasource}
|
||||
origSelectedValues={slice.getFilters() || {}}
|
||||
instantFiltering={fd.instant_filtering}
|
||||
/>,
|
||||
|
Loading…
Reference in New Issue
Block a user