Page MenuHomePhabricator

Hide Pager border if no pager exists
ClosedPublic

Authored by chad on Jul 11 2017, 2:47 AM.
Tags
None
Referenced Files
F18854987: D18202.id43786.diff
Sat, Nov 1, 2:01 AM
F18854910: D18202.id43786.diff
Sat, Nov 1, 1:03 AM
F18823213: D18202.id43780.diff
Thu, Oct 23, 10:39 AM
F18798994: D18202.id43786.diff
Fri, Oct 17, 10:31 AM
F18774454: D18202.id43786.diff
Fri, Oct 10, 9:22 AM
F18701755: D18202.id43780.diff
Sep 27 2025, 8:53 PM
F18200042: D18202.diff
Aug 18 2025, 3:54 AM
F18097392: D18202.id.diff
Aug 8 2025, 1:07 PM
Subscribers

Details

Summary

I guess we have this magical method that tells me if a pager is coming down the render pipe. Huzzah.

Test Plan

Test Branches page in Diffusion, see no pager border.

Diff Detail

Repository
rP Phabricator
Branch
pager-vanish (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 17670
Build 23723: Run Core Tests
Build 23722: arc lint + arc unit

Event Timeline

epriestley added inline comments.
src/view/phui/PHUIObjectBoxView.php
306

Maybe do the check here, instead, and just decline to render the pager rather than pretending it wasn't set. The current behavior makes this not work:

$view->setPager($x);
$x = $view->getPager();

We probably never do that and I don't know that getPager() even exists on this class, but a setX() method just ignoring that it was called feels like a flimsy pattern.

This revision is now accepted and ready to land.Jul 11 2017, 2:55 PM
This revision was automatically updated to reflect the committed changes.