diff --git a/src/components/controls/filter.js b/src/components/controls/filter.js index afeca92ef..0b8ddc789 100644 --- a/src/components/controls/filter.js +++ b/src/components/controls/filter.js @@ -98,7 +98,10 @@ class FilterData extends React.Component { return { filterName, displayName: filterBadgeDisplayName(n, this.getFilterTitle(filterName)), - remove: () => {this.props.dispatch(applyFilter("set", filterName, []));} + anyFiltersActive: () => this.props.activeFilters[filterName].filter((f) => f.active).length>0, + remove: () => {this.props.dispatch(applyFilter("set", filterName, []));}, + activate: () => {this.props.dispatch(applyFilter("add", filterName, this.props.activeFilters[filterName].map((f) => f.value)));}, + inactivate: () => {this.props.dispatch(applyFilter("inactivate", filterName, this.props.activeFilters[filterName].map((f) => f.value)));} }; }); } @@ -138,9 +141,12 @@ class FilterData extends React.Component { {inUseFilters.map((filter) => (
{filter.displayName} diff --git a/src/components/info/filterBadge.js b/src/components/info/filterBadge.js index b541d0e9b..5c1e69c62 100644 --- a/src/components/info/filterBadge.js +++ b/src/components/info/filterBadge.js @@ -64,7 +64,7 @@ const SelectedFilterTextContainer = styled(BaseContainer)` const BadgeContainer = styled.div` background-color: #E9F2F6; - ${(props) => props.striped ? 'background: repeating-linear-gradient(135deg, #E9F2F6, #E9F2F6 5px, transparent 5px, transparent 10px);' : ''}; + ${(props) => props.striped ? 'background: repeating-linear-gradient(135deg, #E9F2F6, #E9F2F6 5px, #FFFFFF 5px, #FFFFFF 10px);' : ''}; display: inline-block; font-size: 14px; border-radius: 2px;