Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Issue #4180 - Display pagination if more than one page
Browse files Browse the repository at this point in the history
  • Loading branch information
punamdahiya committed Apr 12, 2018
1 parent ee84f44 commit d5c6fa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/pages/shotindex/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ class Body extends React.Component {
const hasNext = this.props.pageNumber < totalPages;
const nextPageNumber = this.props.pageNumber - 0 + 1;
const nextClasses = ["shots-page-nav"].concat(!hasNext && "disabled").join(" ");
const hidden = totalPages < 2;

return (
<div id="shot-index-page-navigation">
<div id="shot-index-page-navigation" hidden={hidden} >
<span className={prevClasses}>
<Localized id="shotIndexPagePreviousPage">
{
Expand Down

0 comments on commit d5c6fa1

Please sign in to comment.