Skip to content

Commit

Permalink
flip buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
isamarin committed Nov 21, 2019
1 parent e5f3c91 commit 2e30f4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Alisa/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public function append(Button $button)
public function getPaginated()
{
$this->addServiceButtons();
return array_merge($this->links, $this->buttons);
if ( ! empty($this->buttons)) {
return array_merge($this->buttons, $this->links);
}
return $this->links;
}

protected function addServiceButtons()
Expand Down

0 comments on commit 2e30f4d

Please sign in to comment.