@ -13,7 +13,7 @@ import {apiPath, siteBasePath} from '../../util/url'
export const FILTER _GROUPS = {
'page' : [ 'page' ] ,
'source' : [ 'source' , 'referrer' ] ,
' cou ntry ': [ 'country' , 'region' , 'city' ] ,
' lo cati on': [ 'country' , 'region' , 'city' ] ,
'screen' : [ 'screen' ] ,
'browser' : [ 'browser' , 'browser_version' ] ,
'os' : [ 'os' , 'os_version' ] ,
@ -56,9 +56,11 @@ function withIndefiniteArticle(word) {
export function formatFilterGroup ( filterGroup ) {
if ( filterGroup === 'utm' ) {
return 'UTM tags'
}
} else if ( filterGroup === 'location' ) {
return 'Location'
} else {
return formattedFilters [ filterGroup ]
}
}
export function filterGroupForFilter ( filter ) {
@ -122,7 +124,7 @@ class FilterModal extends React.Component {
}
onSelect ( filterName ) {
if ( this . state . selectedFilterGroup !== ' cou ntry ') {
if ( this . state . selectedFilterGroup !== ' lo cati on') {
return ( ) => { }
}
@ -134,7 +136,7 @@ class FilterModal extends React.Component {
}
onInput ( filterName ) {
if ( this . state . selectedFilterGroup === ' cou ntry ') {
if ( this . state . selectedFilterGroup === ' lo cati on') {
return ( ) => { }
}