Skip to content

Commit 8ad0b44

Browse files
committed
Add a spinner for Load more
1 parent 6f8d995 commit 8ad0b44

File tree

1 file changed

+3
-1
lines changed
  • src/containers/SequenceSearch/components/Results

1 file changed

+3
-1
lines changed

src/containers/SequenceSearch/components/Results/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ class Results extends React.Component {
145145
{ this.props.entries.map((entry, index) => (
146146
<ul key={`${entry}_${index}`}><Hit entry={entry} alignmentsCollapsed={this.props.alignmentsCollapsed} onToggleAlignmentsCollapsed={this.onToggleAlignmentsCollapsed} customStyle={this.props.customStyle} databases={this.props.databases} exactMatchUrsId={exactMatchUrsId}/></ul>
147147
)) }
148-
{(this.props.status === "success" || this.props.status === "partial_success") && (this.props.entries.length < this.props.hitCount) && (<a className="button small" onClick={this.props.onLoadMore} target="_blank">Load more</a>)}
148+
<div className="small-12 columns">
149+
{this.props.status === "loading" ? <i className="animated infinite flash">...</i> : (this.props.status === "success" || this.props.status === "partial_success") && (this.props.entries.length < this.props.hitCount) && (<a className="button small" onClick={this.props.onLoadMore} target="_blank">Load more</a>)}
150+
</div>
149151
</section>
150152
</div>
151153
</div>

0 commit comments

Comments
 (0)