Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Fixed incorrect message when no pages are returned for filters. Now w…
Browse files Browse the repository at this point in the history
…e are returning 'No Pages Found.'.
  • Loading branch information
soniacq committed Jun 1, 2017
1 parent dde89dc commit 8ca6f5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/components/Views.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,10 @@ class Views extends React.Component {


render() {
var searchOtherEngine =(this.state.session['search_engine']=='BING')?"Query failed. Try Google.":(this.state.session['search_engine'] == 'GOOG')?"Query failed. Try Bing.":"";
var searchOtherEngine = "No Pages Found.";
if(this.state.session['newPageRetrievalCriteria'] == "one" && this.state.session['pageRetrievalCriteria'] == "Queries"){
searchOtherEngine = (this.state.session['search_engine']=='BING')?"Query failed. Try Google.":(this.state.session['search_engine'] == 'GOOG')?"Query failed. Try Bing.":"";
}
var messageSearch = (this.queryFromSearch)? "Searching..." :searchOtherEngine;
//if(!this.queryFromSearch && this.state.lengthTotalPages==0)
var showPages = (Object.keys(this.state.pages).length>0)?<ViewTabSnippets
Expand Down

0 comments on commit 8ca6f5b

Please sign in to comment.