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

Commit

Permalink
Show loading indicator when changing pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjs-usds committed Feb 13, 2017
1 parent 587d53e commit 8e39bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/pages/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,13 @@ export default class Search extends Page {

@autobind
onSelectQueryType(type) {
this.setState({queryType: type}, () => this.fetchData(this.props))
this.setState({queryType: type}, () => this.loadData())
}

@autobind
goToReportsPage(reportsPageNum) {
let pageNum = this.state.pageNum
pageNum.reports = reportsPageNum
this.fetchData(this.props)
this.loadData()
}
}

0 comments on commit 8e39bf4

Please sign in to comment.