Page MenuHomePhabricator

Hide Pager border if no pager exists
ClosedPublic

Authored by chad on Jul 11 2017, 2:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 30, 1:56 PM
Unknown Object (File)
Wed, Apr 30, 4:52 AM
Unknown Object (File)
Tue, Apr 29, 5:39 PM
Unknown Object (File)
Mon, Apr 28, 3:54 AM
Unknown Object (File)
Mar 24 2025, 8:46 AM
Unknown Object (File)
Mar 21 2025, 3:52 AM
Unknown Object (File)
Mar 17 2025, 4:49 PM
Unknown Object (File)
Mar 13 2025, 11:56 AM
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.