Commit 6e9f920e authored by Jed Simson's avatar Jed Simson

Add better message for when search is completed

parent bbc7094c
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -38,7 +38,7 @@ const ResultsPanel = React.createClass({
<div className="card" id="results-card">
<div className="card-block">
<h4 className="card-title">Results</h4>
{showInformation ? <div id="info" className="alert alert-info">{this.state.info}</div> : null}
{(showInformation || !noSubmissions) ? <div id="info" className="alert alert-info">{this.state.info}</div> : null}
</div>
<div className="card-block" style={{'padding-top': '0em'}}>
<div className="list-group" id="results">
......
......@@ -135,6 +135,10 @@ const SearchForm = React.createClass({
if ('submissions' in data) {
// A result has been given
message = 'Search complete! Showing ' + data['submissions'].length
+ ' of ' + data.processed + ' submissions fetched at ' +
data.time;
resultsPanel.setState({
info: message,
submissions: data['submissions'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment