remove 'include all results' setting on search page #1688

Merged
neb-b merged 1 commit from sean-patch into master 2018-06-25 21:17:45 +02:00

View file

@ -12,7 +12,6 @@ import * as icons from 'constants/icons';
type Props = { type Props = {
query: ?string, query: ?string,
showUnavailable: boolean,
resultCount: number, resultCount: number,
setClientSetting: (string, number | boolean) => void, setClientSetting: (string, number | boolean) => void,
}; };
@ -35,7 +34,7 @@ class SearchPage extends React.PureComponent<Props> {
} }
render() { render() {
const { query, resultCount, showUnavailable } = this.props; const { query, resultCount } = this.props;
return ( return (
<Page> <Page>
<React.Fragment> <React.Fragment>
@ -49,13 +48,18 @@ class SearchPage extends React.PureComponent<Props> {
onChange={this.onSearchResultCountChange} onChange={this.onSearchResultCountChange}
postfix={__('returned results')} postfix={__('returned results')}
/> />
<FormField {
type="checkbox" // Removing this for now, it currently doesn't do anything but ideally it would
name="show_unavailable" // display content that we don't think is currently available to download
onChange={this.onShowUnavailableChange} // It is like a "display all" setting
checked={showUnavailable} // <FormField
postfix={__('Include unavailable content')} // type="checkbox"
/> // name="show_unavailable"
// onChange={this.onShowUnavailableChange}
// checked={showUnavailable}
// postfix={__('Include unavailable content')}
// />
}
</FormRow> </FormRow>
</React.Fragment> </React.Fragment>
{isURIValid(query) && ( {isURIValid(query) && (