Show "Show Older" for transactions the user has not interacted with

Summary: Fixes T7454. We weren't triggering "Show Older" unless there were hidden events because of a previous interaction.

Test Plan:
  - Set page size to 3.
  - Viewed a task with ~10 transactions.
  - Before patch:
    - Only 3 most recent transactions visible, no way to see older ones.
    - Saw "show older" appear, paged backward through transaction histroy.
  - Also, interacted with task and then viewed it, made sure "show older" still works.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T7454

Differential Revision: https://secure.phabricator.com/D11963
This commit is contained in:
epriestley
2015-03-04 10:36:01 -08:00
parent 85cc15b56d
commit b09168e689
2 changed files with 21 additions and 4 deletions

View File

@@ -79,6 +79,10 @@ final class AphrontCursorPagerView extends AphrontView {
return $results;
}
final public function getHasMoreResults() {
return $this->moreResults;
}
public function willShowPagingControls() {
return $this->prevPageID ||
$this->nextPageID ||