mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-07 01:19:53 +02:00
do not show seperator if there are no other pages between button before and after seperator
This commit is contained in:
@@ -93,8 +93,9 @@ class Paginator extends React.Component<Props> {
|
||||
|
||||
if (page + 1 < pageTotal) {
|
||||
links.push(this.renderPageButton(page + 1, "next"));
|
||||
links.push(this.seperator());
|
||||
}
|
||||
if(page+2 < pageTotal) //if there exists pages between next and last
|
||||
links.push(this.seperator());
|
||||
if (page < pageTotal) {
|
||||
links.push(this.renderLastButton());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user